13 Aug
2007
13 Aug
'07
3:10 a.m.
Alan DeKok wrote:
Enrik Berkhan wrote:
obviously, the SIGINT handler for clean shutdown when running in debug mode isn't set up correctly:
I'm not so sure. When debugging, you don't care if the server dies without shutting down cleanly on CTRL-C. When running in daemon mode, it should shut down cleanly.
I do care because my embedded perl code does some resource cleanup on shutdown that should be done even when debugging ;-) And CTRL-C aka SIGINT is the typical way of shutting down in debug mode. Killing with SIGTERM isn't as easy as typing CTRL-C ...
Then again, SIGTERM is for clean shutdowns in daemon mode.
That's right and that's why I think SIGINT should be handled specially in debugging mode, not in daemon mode. Enrik