SIGINT handler not set correctly when debugging
enrik#freeradius at planb.de
Mon Aug 13 09:10:37 CEST 2007
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.
More information about the Freeradius-Devel