Module: ngircd.git Branch: master Commit: 4a90959cb563e7c6ca57d32779074b448982c94f URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4a909...
Author: Alexander Barton alex@barton.de Date: Fri Jun 8 22:08:52 2012 +0200
Log a debug message when SIGUSR2 is handled
---
src/ngircd/sighandlers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index 427789c..efb41bc 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);