]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Log a debug message when SIGUSR2 is handled
authorAlexander Barton <alex@barton.de>
Fri, 8 Jun 2012 20:08:52 +0000 (22:08 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 8 Jun 2012 20:08:52 +0000 (22:08 +0200)
src/ngircd/sighandlers.c

index 427789c3fbbaf291aa026753aa4d86bcc76c1f66..efb41bcd8465147ff68fff0f70afcac1452cdba9 100644 (file)
@@ -218,8 +218,11 @@ Signal_Handler_BH(int Signal)
                break;
 #ifdef DEBUG
        case SIGUSR2:
                break;
 #ifdef DEBUG
        case SIGUSR2:
-               if (NGIRCd_Debug)
+               if (NGIRCd_Debug) {
+                       Log(LOG_INFO|LOG_snotice,
+                           "Got SIGUSR2, dumping internal state ...");
                        Dump_State();
                        Dump_State();
+               }
                break;
        default:
                Log(LOG_DEBUG, "Got signal %d! Ignored.", Signal);
                break;
        default:
                Log(LOG_DEBUG, "Got signal %d! Ignored.", Signal);