Debug mode and CTRL-C

2002-10-30 Thread delphi
Hi! While in debug mode, after Ctrl-C server does mot exit clearly. Problem in: radiusd.c line 940 /* * If we're debugging, then a CTRL-C will cause the * server to die immediately. Use SIGTERM to shut down * the server cleanly in that case

Re: Debug mode and CTRL-C

2002-10-30 Thread delphi
also I think that it is not so bad to add /* * Delete PID file to indicate * normal shutdown */ unlink(pid_file); or if (dont_fork == FALSE) unlink(pid_file); in if (do_exit) {...} block. - List

Re: Debug mode and CTRL-C

2002-10-30 Thread Alan DeKok
[EMAIL PROTECTED] wrote: While in debug mode, after Ctrl-C server does mot exit clearly. Yes... if you had seen one of my previous messages on this topic, you would know that this is intentional, and WHY it's intentional. Alan DeKok. - List info/subscribe/unsubscribe? See http

Re[2]: Debug mode and CTRL-C

2002-10-30 Thread delphi
Yes... if you had seen one of my previous messages on this topic, you would know that this is intentional, and WHY it's intentional. shrug Maybe I've missed something...but I don't find reason while 'dirty' exit was done intentionally for debugging - List info/subscribe/unsubscribe?

Re: Re[2]: Debug mode and CTRL-C

2002-10-30 Thread Alan DeKok
[EMAIL PROTECTED] wrote: shrug Maybe I've missed something...but I don't find reason while 'dirty' exit was done intentionally for debugging Because you can still send it SIGTERM. CTRL-C means die now. SIGTERM means please die. In debugging mode, and without child threads, the