SIGINT handler not set correctly when debugging
    Enrik Berkhan 
    enrik#freeradius at planb.de
       
    Fri Aug 10 09:27:38 CEST 2007
    
    
  
Hi,
obviously, the SIGINT handler for clean shutdown when running in debug
mode isn't set up correctly:
Index: src/main/radiusd.c
===================================================================
RCS file: /source/radiusd/src/main/radiusd.c,v
retrieving revision 1.370
diff -u -r1.370 radiusd.c
--- src/main/radiusd.c  12 Jun 2007 09:16:26 -0000      1.370
+++ src/main/radiusd.c  10 Aug 2007 07:24:45 -0000
@@ -475,7 +475,7 @@
         *      server to die immediately.  Use SIGTERM to shut down
         *      the server cleanly in that case.
         */
-       if ((debug_memory == 1) || (debug_flag == 0)) {
+       if ((debug_memory == 1) || (debug_flag != 0)) {
 #ifdef HAVE_SIGACTION
                act.sa_handler = sig_fatal;
                sigaction(SIGINT, &act, NULL);
Enrik
    
    
More information about the Freeradius-Devel
mailing list