Module: ngircd.git
Branch: master
Commit: 5da98ec389de2a6d671d270abba86c395e593537
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=5da98ec3…
Author: Alexander Barton <alex(a)barton.de>
Date: Thu Dec 2 13:36:19 2010 +0100
Don't log critical (or worse) messages to stderr
stderr isn't redirected to the "error file" any more, so there is
no point in trying to log to it ...
---
src/ngircd/log.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index f68a0fb..0bc53ed 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -205,12 +205,6 @@ va_dcl
Log_Message(Level, msg);
- if (Level <= LOG_CRIT) {
- /* log critical messages to stderr */
- fprintf(stderr, "%s\n", msg);
- fflush(stderr);
- }
-
if (snotice) {
/* Send NOTICE to all local users with mode +s and to the
* local &SERVER channel */
Module: ngircd.git
Branch: master
Commit: 60bb40d67a8d7c1e38a5d8ca2b7968cf08706008
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=60bb40d6…
Author: Alexander Barton <alex(a)barton.de>
Date: Thu Dec 2 13:38:42 2010 +0100
Reset ID of outgoing server link on DNS error correctly
Not resetting the ID prevents the daemon from trying to re-establish
outgoing server links when the DNS resolver failed to resole a hostname.
---
src/ngircd/conn.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 2d5e129..a92f99f 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -1968,8 +1968,11 @@ cb_Connect_to_Server(int fd, UNUSED short events)
/* Read result from pipe */
len = Proc_Read(&Conf_Server[i].res_stat, dest_addrs, sizeof(dest_addrs));
- if (len == 0)
+ if (len == 0) {
+ /* Error resolving hostname: reset server structure */
+ Conf_Server[i].conn_id = NONE;
return;
+ }
assert((len % sizeof(ng_ipaddr_t)) == 0);
Module: ngircd.git
Branch: master
Commit: 0305f75456fde86ff9d0179146d2ea821cff1457
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=0305f754…
Author: Alexander Barton <alex(a)barton.de>
Date: Wed Dec 1 22:04:28 2010 +0100
Manual page ngircd(8): add SIGNALS section
---
man/ngircd.8.tmpl | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/man/ngircd.8.tmpl b/man/ngircd.8.tmpl
index f1251e1..4a01d71 100644
--- a/man/ngircd.8.tmpl
+++ b/man/ngircd.8.tmpl
@@ -64,6 +64,15 @@ The system wide default configuration file.
.RS
Default "message of the day" (MOTD).
.RE
+.SH SIGNALS
+The daemon understands the following signals:
+.TP
+\fBTERM\fR
+Shut down all conections and terminate the daemon.
+.TP
+\fBHUP\fR
+Shut down all listening sockets, re-read the configuration file and
+re-initialize the daemon.
.SH HINTS
It's wise to use "ngircd \-\-configtest" to validate the configuration file
after changing it.