summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
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 /usr.sbin/bgpd/rde.c
parentba3f9c3432acd99143b0759fb2d8c3b9f0f715fb (diff)
Ignore SIGHUP in bgpd's children to allow the use of pkill -1 bgpd for
reloading. ``yeah that is good'' henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c3
1 files changed, 2 insertions, 1 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]);