Module: ngircd.git Branch: master Commit: 0fd9a8505a2dc325d0a17c7ebbed4b08a76576bf URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=0fd9a...
Author: Alexander Barton alex@barton.de Date: Tue Sep 11 15:44:31 2012 +0200
Correctly re-initialize signal handlers on RESTART
This fixes part 2 of bug #127 :-)
---
src/ngircd/ngircd.c | 1 + src/ngircd/sighandlers.c | 1 + 2 files changed, 2 insertions(+)
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index 8a93bcb..e24cefa 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -330,6 +330,7 @@ main(int argc, const char *argv[]) Channel_Exit(); Class_Exit(); Log_Exit(); + Signals_Exit(); } Pidfile_Delete();
diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index efb41bc..a219105 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -334,6 +334,7 @@ Signals_Exit(void) #endif close(signalpipe[1]); close(signalpipe[0]); + signalpipe[0] = signalpipe[1] = 0; }
/* -eof- */
ngircd-commits@lists.barton.de