logoalt Hacker News

pjmlptoday at 6:08 AM1 replyview on HN

Exactly, the only safe thing to do in a signal is set a variable for other code to react on, also they completely mess up in multi-threaded code.


Replies

germandiagotoday at 6:27 AM

That is exactly what I do: set an stomic variable and do yhings outside of the handler.