commit - 74578890b71dc16aadaf299af875b45fc7fbe081
commit + b3cfbc3d28de9098be7cffc22ea9c5b98c36443f
blob - d472b7fcbb1c165e269c57d9dde761ec65835928
blob + aaff1eabfa2099488ffca7f648fe2eec50a60d33
--- src/ngircd/sighandlers.c
+++ src/ngircd/sighandlers.c
static int signalpipe[2];
+static const int signals_catch[] = {
+ SIGINT, SIGQUIT, SIGTERM, SIGHUP, SIGCHLD, SIGUSR1, SIGUSR2
+};
+
#ifdef DEBUG
static void
#endif
}
+
/**
* Reload the server configuration file.
*/
static void
-NGIRCd_Rehash( void )
+Rehash(void)
{
char old_name[CLIENT_ID_LEN];
unsigned old_nicklen;
Conn_SyncServerStruct( );
Log( LOG_NOTICE|LOG_snotice, "Re-reading of configuration done." );
-} /* NGIRCd_Rehash */
+} /* Rehash */
-
/**
* Signal handler of ngIRCd.
* This function is called whenever ngIRCd catches a signal sent by the
/* shut down sever */
NGIRCd_SignalQuit = true;
return;
- case SIGHUP:
- break;
case SIGCHLD:
/* child-process exited, avoid zombies */
while (waitpid( -1, NULL, WNOHANG) > 0)
switch (Signal) {
case SIGHUP:
/* re-read configuration */
- NGIRCd_Rehash();
+ Rehash();
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.
blob - 1c0edbb58d15747151f31698c7494634d2186068
blob + 98f91e8f4d561f3e0f88013f29a379e77bcfcbad
--- src/ngircd/sighandlers.h
+++ src/ngircd/sighandlers.h
/*
+ * 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