Commit f3474fd0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(sighandler_hup): Reinstall the SIGHUP handler.

(sighandler_usr2): Reinstall the SIGHUSR2 handler.
parent f95e7ecd
/*
* $Id: ramkomd.c,v 0.59 1996/07/28 23:43:39 ceder Exp $
* $Id: ramkomd.c,v 0.60 1996/07/29 13:17:10 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -31,7 +31,7 @@
* It has grown! /ceder
*/
static char *rcsid = "$Id: ramkomd.c,v 0.59 1996/07/28 23:43:39 ceder Exp $";
static char *rcsid = "$Id: ramkomd.c,v 0.60 1996/07/29 13:17:10 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -181,6 +181,7 @@ init_data_base(const char *dir_base)
static void
sighandler_hup (int sig)
{
signal(SIGHUP, sighandler_hup);
log ("Signal HUP received. Shutting down server.\n");
go_and_die = TRUE;
}
......@@ -206,6 +207,8 @@ sighandler_usr2 (int sig)
{
int child;
signal(SIGUSR2, sighandler_usr2);
log ("Signal USR2 received - will dump core now. (Check that child dies.)\n");
if ((child = fork()) == 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment