Module: ngircd.git
Branch: master
Commit: 1fe17e246cba4ee2f4349196c544296790ab5d55
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1fe17e24…
Author: Florian Westphal <fw(a)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=1fe1…
Module: ngircd.git
Branch: master
Commit: 6349ec8bb33d74aa73f0ffa17c29d54119ab9d77
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=6349ec8b…
Author: Alexander Barton <alex(a)barton.de>
Date: Wed Sep 8 02:02:01 2010 +0200
Conn_SyncServerStruct(): test all connections; and work case insensitive
Fix synchronization of established connections and configured server
structures after a configuration update:
- Not only test servers that already have a connection, but also check
and update configured servers to which a new connection is beeing
established (SERVER_WAIT state).
- And do the server name comparision case-insensitive.
---
src/ngircd/conn.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index a8e93a2..78a20b0 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -1139,32 +1139,32 @@ Conn_CountAccepted(void)
} /* Conn_CountAccepted */
+/**
+ * Synchronize established connections and configured server structures
+ * after a configuration update and store the correct connection IDs, if any.
+ */
GLOBAL void
-Conn_SyncServerStruct( void )
+Conn_SyncServerStruct(void)
{
- /* Synchronize server structures (connection IDs):
- * connections <-> configuration */
-
CLIENT *client;
CONN_ID i;
int c;
- for( i = 0; i < Pool_Size; i++ ) {
- /* Established connection? */
- if (My_Connections[i].sock < 0)
+ for (i = 0; i < Pool_Size; i++) {
+ if (My_Connections[i].sock == NONE)
continue;
- /* Server connection? */
- client = Conn_GetClient( i );
- if(( ! client ) || ( Client_Type( client ) != CLIENT_SERVER )) continue;
+ /* Server link? */
+ client = Conn_GetClient(i);
+ if (!client || Client_Type(client) != CLIENT_SERVER)
+ continue;
- for( c = 0; c < MAX_SERVERS; c++ )
- {
+ for (c = 0; c < MAX_SERVERS; c++) {
/* Configured server? */
- if( ! Conf_Server[c].host[0] ) continue;
+ if (!Conf_Server[c].host[0])
+ continue;
- /* Duplicate? */
- if( strcmp( Conf_Server[c].name, Client_ID( client )) == 0 )
+ if (strcasecmp(Conf_Server[c].name, Client_ID(client)) == 0)
Conf_Server[c].conn_id = i;
}
}
Module: ngircd.git
Branch: master
Commit: 90a186158be1c9bdfdb35d62381b89f718c65b93
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=90a18615…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Aug 29 18:09:57 2010 +0200
Fix linebreak in INSTALL text to fit in 80 columns
---
INSTALL | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/INSTALL b/INSTALL
index b2c8180..f7e51a1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,7 +1,7 @@
ngIRCd - Next Generation IRC Server
- (c)2001-2007 Alexander Barton,
+ (c)2001-2010 Alexander Barton,
alex(a)barton.de, http://www.barton.de/
ngIRCd is free software and published under the
@@ -15,8 +15,8 @@ I. Upgrade Information
Differences to version 16
-- Changes to the "MotdFile" specified in ngircd.conf now require a ngircd configuration
- reload to take effect.
+- Changes to the "MotdFile" specified in ngircd.conf now require a ngircd
+ configuration reload to take effect (HUP signal, REHASH command).
Differences to version 0.9.x
Module: ngircd.git
Branch: master
Commit: 4833f9e5c8cdc9440fa86ed53ca50099b7139a18
URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4833f9e5…
Author: Alexander Barton <alex(a)barton.de>
Date: Sun Aug 29 18:10:49 2010 +0200
Update ChangeLog and NEWS in preparation for the next release ...
---
ChangeLog | 33 +++++++++++++++++++++++++++++++++
NEWS | 15 +++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d40a2be..2fca3a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,39 @@
-- ChangeLog --
+ngIRCd Release 17
+
+ - 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.
+ - Implement user mode "x": hostname cloaking (closes: #102).
+ - Make configure switch "--docdir" work (closes: #108).
+ - Reformat and update FAQ.txt a little bit.
+ - INSTALL: mention SSL, IPv6, and changed handling of MotdFile.
+ - 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
+ re-read the MOTD file when its content changed.
+ - Startup: open /dev/null before chroot'ing the daemon.
+ - Allow IRC ops to change channel modes even without OperServerMode set.
+ - Allow IRC operators to use MODE command on any channel (closes: #100).
+ - Added mailmap file for git-[short]log and git-blame.
+ - Authenticated users should be registered without the "~" mark.
+ - Set NoPAM=yes in configuration files used for the testsuite.
+ - New configuration option "NoPAM" to disable PAM.
+ - Implement asynchronous user authentication using PAM, please see the
+ file doc/PAM.txt for details.
+ - Resolver: Implement signal handler and catch TERM signals.
+ - Don't set a penalty time when doing DNS lookups.
+ - Add some documentation for using BOPM with ngIRCd, see doc/Bopm.txt.
+ - Implement user mode "c": receive connect/disconnect NOTICEs. Note that
+ this new mode requires the user to be an IRC operator.
+ - ngircd.init: require "$network" and "$remote_fs" when stopping ngircd.
+ - Show SSL status in WHOIS output, numeric 275.
+ - Include correct header files when testing for arpa/inet.h (Closes: #105).
+ - Don't access already freed memory in IRC_KILL().
+ - Fix "beeing" typo ...
+ - SSL/TLS: fix bogus "socket closed" error message.
+
ngIRCd Release 16 (2010-05-02)
- doc/SSL: remove line continuation marker
diff --git a/NEWS b/NEWS
index 3d81baf..a4c1a11 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,21 @@
-- NEWS --
+ngIRCd Release 17
+
+ - 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
+ re-read the MOTD file when its content changed.
+ - Allow IRC ops to change channel modes even without OperServerMode set.
+ - Allow IRC operators to use MODE command on any channel (closes: #100).
+ - New configuration option "NoPAM" to disable PAM.
+ - Implement asynchronous user authentication using PAM, please see the
+ file doc/PAM.txt for details.
+ - Implement user mode "c": receive connect/disconnect NOTICEs. Note that
+ this new mode requires the user to be an IRC operator.
+ - Show SSL status in WHOIS output, numeric 275.
+
ngIRCd Release 16 (2010-05-02)
ngIRCd 16~rc2 (2010-04-25)