* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: ircd_signal.c 6 2005-09-10 01:02:21Z nenolod $
*/
#include "stdinc.h"
static void
sigterm_handler(int sig)
{
- /* XXX we had a flush_connections() here - we should close all the
- * connections and flush data. read server_reboot() for my explanation.
- * -- adrian
- */
- ilog(L_MAIN, "Server killed By SIGTERM");
- exit(-1);
+ ircd_shutdown("Received SIGTERM");
}
/*