Log a debug message when SIGUSR2 is handled

This commit is contained in:
Alexander Barton 2012-06-08 22:08:52 +02:00
parent 9b1cf420f1
commit 4a90959cb5
1 changed files with 4 additions and 1 deletions

View File

@ -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);