Module: ngircd.git Branch: master Commit: 1fe17e246cba4ee2f4349196c544296790ab5d55 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1fe17...
Author: Florian Westphal fw@strlen.de Date: Sat Sep 11 00:19:01 2010 +0200
Add new 'delayed' signal handlers.
Allows to defer/queue signal processing for execution on the next event dispatch call, i.e. we can perform any signal action in normal, non-signal context.
Example uses: - Reload everything on HUP without writing a global "SIGHUP_received" variable - Dump status of internal Lists on SIGUSR1, etc.
---
configure.in | 2 +- src/ngircd/Makefile.am | 2 +- src/ngircd/conn.c | 5 - src/ngircd/ngircd.c | 89 ++----------------- src/ngircd/ngircd.h | 2 + src/ngircd/parse.c | 4 +- src/ngircd/proc.c | 2 + src/ngircd/sighandlers.c | 220 ++++++++++++++++++++++++++++++++++++++++++++++ src/ngircd/sighandlers.h | 18 ++++ 9 files changed, 255 insertions(+), 89 deletions(-)
Diff: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commitdiff;h=1...