From: Alexander Barton Date: Fri, 8 Jun 2012 20:08:52 +0000 (+0200) Subject: Log a debug message when SIGUSR2 is handled X-Git-Tag: rel-19.2-rc1~4 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=4a90959cb563e7c6ca57d32779074b448982c94f Log a debug message when SIGUSR2 is handled --- diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index 427789c3..efb41bcd 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -218,8 +218,11 @@ Signal_Handler_BH(int Signal) break; #ifdef DEBUG case SIGUSR2: - if (NGIRCd_Debug) + if (NGIRCd_Debug) { + Log(LOG_INFO|LOG_snotice, + "Got SIGUSR2, dumping internal state ..."); Dump_State(); + } break; default: Log(LOG_DEBUG, "Got signal %d! Ignored.", Signal);