summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-09 12:21:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-09 12:21:10 +0000
commita36bfad67e1ea4d02bf6f413f09c0b0a5941fe65 (patch)
tree21d907680d54f13eaa8eaa5a3c11122388a21a88 /usr.sbin/ntpd/ntp.c
parentfb9953cc4479c02867e5b1a28ec3e59dd6926361 (diff)
the child process needs to ignore SIGHUP for now, otto
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r--usr.sbin/ntpd/ntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 636bc2c4412..6bf01eac712 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.19 2004/07/09 10:53:33 henning Exp $ */
+/* $OpenBSD: ntp.c,v 1.20 2004/07/09 12:21:09 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -102,6 +102,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *conf)
signal(SIGTERM, ntp_sighdlr);
signal(SIGINT, ntp_sighdlr);
signal(SIGPIPE, SIG_IGN);
+ signal(SIGHUP, SIG_IGN);
close(pipe_prnt[0]);
imsg_init(&ibuf_main, pipe_prnt[1]);