[Interest] proper (silent) exit in response to SIGHUP?
René J. V. Bertin
rjvbertin at gmail.com
Wed Oct 10 09:50:10 CEST 2018
Thiago Macieira wrote:
> You can call _exit. You can't call much else. You can only call the functions
> listed in this man page from a signal handler:
> http://man7.org/linux/man-pages/man7/signal-safety.7.html
>
> NEVER allocate memory and NEVER lock a mutex in a signal handler.
So you are basically saying that KDevelop is doing it all wrong and that it's
purely by chance that this works (when the X server is responsive)?
https://github.com/KDE/kdevelop/blob/master/kdevplatform/shell/core.cpp#L54
(not looking to point fingers, just to know if there's room for improvement)
R.
More information about the Interest
mailing list