don't exit on SIGHUP - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 8d9bad389a4ac22fc292f92d0128af8679e640fa
DIR parent c89bef327e78a4c0400b3665d249d36af6a3160b
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 29 Aug 2018 20:03:49 +0200
don't exit on SIGHUP
SIGHUP is normally often used in daemons to reload the config and/or reopen log
files.
This was noticed on OpenBSD not starting the geomyidae server on boot. The
init implementations on OpenBSD, NetBSD and possibly others send SIGHUP to
processes in a boot transition period.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M main.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
DIR diff --git a/main.c b/main.c
@@ -256,7 +256,6 @@ sighandler(int sig)
case SIGCHLD:
while (waitpid(-1, NULL, WNOHANG) > 0);
break;
- case SIGHUP:
case SIGINT:
case SIGQUIT:
case SIGABRT: