From 265f07ad5383a0795f3cebc7712acfa8451a03b4 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sat, 3 Apr 1999 22:25:40 +0000 Subject: [PATCH] (go_and_die, do_statistics): Moved from connections.h. --- src/server/sigflags.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/server/sigflags.h diff --git a/src/server/sigflags.h b/src/server/sigflags.h new file mode 100644 index 000000000..dbfeddb55 --- /dev/null +++ b/src/server/sigflags.h @@ -0,0 +1,36 @@ +/* + * $Id: sigflags.h,v 1.1 1999/04/03 22:25:40 ceder Exp $ + * Copyright (C) 1991 Lysator Academic Computer Association. + * + * This file is part of the LysKOM server. + * + * LysKOM 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 1, or (at your option) + * any later version. + * + * LysKOM is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with LysKOM; see the file COPYING. If not, write to + * Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN, + * or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, + * MA 02139, USA. + * + * Please mail bug reports to bug-lyskom@lysator.liu.se. + */ + + +/* The go_and_die flag is set by SIGHUP and shutdown_kom. It causes + lyskomd to be shut down in an orderly fashion. */ + +extern volatile sig_atomic_t go_and_die; + + +/* The do_statistics flag is set by SIGUSR1. It causes lyskomd to + write some statistics, typically to /usr/lyskom/etc/lyskomd-log. */ + +extern volatile sig_atomic_t do_statistics; -- GitLab