diff options
author | pyr <pyr@openbsd.org> | 2007-06-19 14:42:09 +0000 |
---|---|---|
committer | pyr <pyr@openbsd.org> | 2007-06-19 14:42:09 +0000 |
commit | 1035f31cac0175f6634118976a7792c9ba6c41ff (patch) | |
tree | c235cb2b77bfd3001151e89ae5c2f12a7b2e7cbe /usr.sbin/ospfd/rde.c | |
parent | don't go through the effort of creating a SIGHUP handler through (diff) | |
download | wireguard-openbsd-1035f31cac0175f6634118976a7792c9ba6c41ff.tar.xz wireguard-openbsd-1035f31cac0175f6634118976a7792c9ba6c41ff.zip |
Allow ospfd reconfiguration through SIGHUP, add SIGHUP handlers in
children like in bgpd so that ``pkill -1 ospfd'' works as expected.
ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/rde.c')
-rw-r--r-- | usr.sbin/ospfd/rde.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index 1c0ad91bb52..aa9a09aa5ab 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.66 2007/04/11 07:09:15 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.67 2007/06/19 14:42:09 pyr Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -137,6 +137,7 @@ rde(struct ospfd_conf *xconf, int pipe_parent2rde[2], int pipe_ospfe2rde[2], signal_add(&ev_sigint, NULL); signal_add(&ev_sigterm, NULL); signal(SIGPIPE, SIG_IGN); + signal(SIGHUP, SIG_IGN); /* setup pipes */ close(pipe_ospfe2rde[0]); |