Module: ngircd.git
Branch: master
Commit: ba720fcbaeaacee700d7d23936cf481e6fcb83b1
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=ba720fcb…
Author: Florian Westphal <fw(a)strlen.de>
Date: Tue Sep 14 23:53:59 2010 +0200
Fix signalpipe file descriptor leak on RESTART
Signals_Init() must only be called once.
This does not affect any ngircd release version.
Earlier version of this patch moved the io and sighandler
initialization before the while() loop, but as Alexander
Barton noticed that broke all systems without builtin select
support in io.c...
---
src/ngircd/sighandlers.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c
index aaff1ea..80eef3e 100644
--- a/src/ngircd/sighandlers.c
+++ b/src/ngircd/sighandlers.c
@@ -266,6 +266,8 @@ Signals_Init(void)
#ifdef HAVE_SIGACTION
struct sigaction saction;
#endif
+ if (signalpipe[0] > 0 || signalpipe[1] > 0)
+ return true;
if (pipe(signalpipe))
return false;
Module: ngircd.git
Branch: master
Commit: cdae82413d20c802bbde11f994b8736df38e978b
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=cdae8241…
Author: Alexander Barton <alex(a)barton.de>
Date: Fri Sep 10 21:22:08 2010 +0200
Update ChangeLog and NEWS: include SIGUSR1/SIGUSR2 changes
---
ChangeLog | 7 +++++++
NEWS | 6 ++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2fca3a4..73c98d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,13 @@
ngIRCd Release 17
+ - Dump the "internal server state" (configured servers, established
+ connections and known clients) to the console or syslog when receiving
+ the SIGUSR2 signal and debug mode is enabled.
+ - Enable the daemon to disable and enable "debug mode" on runtime using
+ signal SIGUSR1, when debug code is compiled in, not only on startup
+ using the command line parameters.
+ - Conn_SyncServerStruct(): test all connections; and work case insensitive
- configure script: correctly indent IPv6 yes/no summary output.
- Don't reset My_Connections[Idx].lastping when reading data, so the
client lag debug-output is working again.
diff --git a/NEWS b/NEWS
index a4c1a11..d3a600c 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,12 @@
ngIRCd Release 17
+ - Dump the "internal server state" (configured servers, established
+ connections and known clients) to the console or syslog when receiving
+ the SIGUSR2 signal and debug mode is enabled.
+ - Enable the daemon to disable and enable "debug mode" on runtime using
+ signal SIGUSR1, when debug code is compiled in, not only on startup
+ using the command line parameters.
- Implement user mode "x": hostname cloaking (closes: #102).
- Change MOTD file handling: ngIRCd now caches the contens of the MOTD
file, so the daemon now requires a HUP signal or REHASH command to
Module: ngircd.git
Branch: master
Commit: 212311efc5ab9a0196d163e40f01d56cf1a6d237
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=212311ef…
Author: Alexander Barton <alex(a)barton.de>
Date: Tue Sep 14 00:18:20 2010 +0200
Updated ChangeLog to include signal handler changes
---
ChangeLog | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 73c98d9..73c8473 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,10 @@ ngIRCd Release 17
- Enable the daemon to disable and enable "debug mode" on runtime using
signal SIGUSR1, when debug code is compiled in, not only on startup
using the command line parameters.
+ - Signal handler: added new 'delayed' signal handlers, including fallback
+ to deprecated sysv API. And removed global NGIRCd_SignalRehash variable.
+ - IO: add io_cloexec() to set close-on-exec flag.
+ - ng_ipaddr.h: include required assert.h header.
- Conn_SyncServerStruct(): test all connections; and work case insensitive
- configure script: correctly indent IPv6 yes/no summary output.
- Don't reset My_Connections[Idx].lastping when reading data, so the