- declare signals_catch[] array not between the function implementations.
- rename now local function NGIRCd_Rehash() to Rehash().
- remove empty and therefore not used "catch SIGHUP; break;".
static int signalpipe[2];
static int signalpipe[2];
+static const int signals_catch[] = {
+ SIGINT, SIGQUIT, SIGTERM, SIGHUP, SIGCHLD, SIGUSR1, SIGUSR2
+};
+
/**
* Reload the server configuration file.
*/
static void
/**
* Reload the server configuration file.
*/
static void
{
char old_name[CLIENT_ID_LEN];
unsigned old_nicklen;
{
char old_name[CLIENT_ID_LEN];
unsigned old_nicklen;
Conn_SyncServerStruct( );
Log( LOG_NOTICE|LOG_snotice, "Re-reading of configuration done." );
Conn_SyncServerStruct( );
Log( LOG_NOTICE|LOG_snotice, "Re-reading of configuration done." );
/* shut down sever */
NGIRCd_SignalQuit = true;
return;
/* shut down sever */
NGIRCd_SignalQuit = true;
return;
case SIGCHLD:
/* child-process exited, avoid zombies */
while (waitpid( -1, NULL, WNOHANG) > 0)
case SIGCHLD:
/* child-process exited, avoid zombies */
while (waitpid( -1, NULL, WNOHANG) > 0)
switch (Signal) {
case SIGHUP:
/* re-read configuration */
switch (Signal) {
case SIGHUP:
/* re-read configuration */
break;
#ifdef DEBUG
case SIGUSR2:
break;
#ifdef DEBUG
case SIGUSR2:
-static const int signals_catch[] = { SIGINT, SIGQUIT, SIGTERM, SIGHUP, SIGCHLD, SIGUSR1, SIGUSR2 };
/**
* Initialize the signal handlers, catch
* those signals we are interested in and sets SIGPIPE to be ignored.
/**
* Initialize the signal handlers, catch
* those signals we are interested in and sets SIGPIPE to be ignored.
+ * ngIRCd -- The Next Generation IRC Daemon
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or