summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-06-19 09:44:56 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-06-19 09:44:56 +0000
commit96ab81cea2404505873d95c7ef2fe39f0d076a42 (patch)
treedce124d2d89d8de1c2790f85d733fed35bf34e11
parentba3f9c3432acd99143b0759fb2d8c3b9f0f715fb (diff)
Ignore SIGHUP in bgpd's children to allow the use of pkill -1 bgpd for
reloading. ``yeah that is good'' henning@
-rw-r--r--usr.sbin/bgpd/rde.c3
-rw-r--r--usr.sbin/bgpd/session.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 341b43ab038..6c46102eecd 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.226 2007/05/11 11:27:59 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.227 2007/06/19 09:44:55 pyr Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -186,6 +186,7 @@ rde_main(struct bgpd_config *config, struct peer *peer_l,
signal(SIGTERM, rde_sighdlr);
signal(SIGINT, rde_sighdlr);
signal(SIGPIPE, SIG_IGN);
+ signal(SIGHUP, SIG_IGN);
close(pipe_s2r[0]);
close(pipe_s2rctl[0]);
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 419509a4b75..49b8d3f3289 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.275 2007/05/29 02:27:05 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.276 2007/06/19 09:44:55 pyr Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -244,6 +244,7 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
signal(SIGTERM, session_sighdlr);
signal(SIGINT, session_sighdlr);
signal(SIGPIPE, SIG_IGN);
+ signal(SIGHUP, SIG_IGN);
log_info("session engine ready");
close(pipe_m2s[0]);
close(pipe_s2r[1]);