]> granicus.if.org Git - ngircd/commit
Enable the daemon to dump its internal state in debug-mode.
authorAlexander Barton <alex@barton.de>
Wed, 9 Apr 2008 17:03:24 +0000 (19:03 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 13 Sep 2010 22:02:02 +0000 (00:02 +0200)
commit355828e64f6fa07eb96bc6b27eef964b529d8778
tree7749a0f14ef9066ec4e865174800d0a0da9419cd
parent755f54b1501334d827b5c30c03b4551ebb5cbe0d
Enable the daemon to dump its internal state in debug-mode.

This patch allows ngIRCd to dump its internal state (connected clients,
actual configuration) when compiled with --enable-debug. The daemon
catches two more signals:

 - SIGUSR1: toggle debug mode (on/off),
 - SIGUSR2: dump internal state to console/syslog.
src/ngircd/client.c
src/ngircd/client.h
src/ngircd/conf.c
src/ngircd/conf.h
src/ngircd/ngircd.c
src/ngircd/sighandlers.c