Unfortunately, a lot of incorrect information is distributed on the Internet, which leads to undefined behavior. There is a minimal set of functions that are allowed to call the unix signal handler. They are called asynchronous signaling functions. Calling everything else, including every Qt function, results in undefined beghaviour. However, there is a way to handle unix signals in Qt. This method uses a self-propelled trick and is described in the Qt docs article “Calling Qt Functions from Unix Signal Handlers” .
, , , ::write(...) ( , ) . , QSocketNotifier. Qt, .