Closed pablo-lamtenzan closed 3 years ago
SIGHUP may be useful for a configuration file reload functionality. @pablo-lamtenzan Do you know if it is safe to store the signal id in a global variable to handle specific signals? (The server needs to be restarted in case of SIGHUP).
What you mean by signal id ? The integer taken as first param by signal ? Why you need to store this ?
We could restart the server in case of SIGHUP, so it would be useful to know which signal triggered a server-stop.
Fixed by #27 .
The server must be able free it resources while interacting with the kernel signals. For handable signals (all except SIGKILL & SIGSTOP), that will force the process to end (e.g. SIGTERM, SIGHUP), handlers must be implemented. Currently default handler may cause leaks.
Too see: