Commit 3a4e9df4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include "sigflags.h".

(sighandler_hup): Use 1 instead of TRUE as value of go_and_die.
(sighandler_usr1): Use 1 instead of TRUE as value of
	do_statistics.  Use do_statistics instead of do_sync_db.
parent 06f7b8b1
/*
* $Id: ramkomd.c,v 0.73 1999/04/03 09:15:12 ceder Exp $
* $Id: ramkomd.c,v 0.74 1999/04/03 22:15:48 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -44,7 +44,7 @@
#endif
static const char *
rcsid = "$Id: ramkomd.c,v 0.73 1999/04/03 09:15:12 ceder Exp $";
rcsid = "$Id: ramkomd.c,v 0.74 1999/04/03 22:15:48 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -105,6 +105,7 @@ USE(rcsid);
#include "aux-items.h"
#include "admin.h"
#include "unused.h"
#include "sigflags.h"
#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_OFILE) && !defined(RLIMIT_NOFILE)
# define RLIMIT_NOFILE RLIMIT_OFILE
......@@ -213,7 +214,7 @@ sighandler_hup (int UNUSED(sig))
signal(SIGHUP, sighandler_hup);
#endif
log ("Signal HUP received. Shutting down server.\n");
go_and_die = TRUE;
go_and_die = 1;
}
static void
......@@ -231,7 +232,7 @@ sighandler_usr1 (int UNUSED(sig))
#ifndef HAVE_STRUCT_SIGACTION
signal(SIGUSR1, sighandler_usr1);
#endif
do_sync_db = TRUE;
do_statistics = 1;
}
static void
......
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