summaryrefslogtreecommitdiffstats
path: root/lib/sigevent.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-26 01:28:13 +0100
committerRenato Westphal <renato@opensourcerouting.org>2017-03-27 19:54:57 +0200
commit1e7e440f5a5555b286e9b6265e9e481d11123fcd (patch)
tree496ca09cbecb0b7997b93c755a3951ab7b6280a7 /lib/sigevent.c
parentldpd: simplify handling of configuration commands (diff)
downloadfrr-1e7e440f5a5555b286e9b6265e9e481d11123fcd.tar.xz
frr-1e7e440f5a5555b286e9b6265e9e481d11123fcd.zip
ldpd: ignore the SIGHUP signal in the child processes
Only the parent process should handle the SIGHUP signal, but we need to make sure that this signal is ignored in the child processes so a command like "killall -SIGHUP ldpd" won't kill ldpd. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/sigevent.c')
-rw-r--r--lib/sigevent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sigevent.c b/lib/sigevent.c
index a120028d8..09f07180c 100644
--- a/lib/sigevent.c
+++ b/lib/sigevent.c
@@ -108,7 +108,8 @@ quagga_sigevent_process (void)
if (sig->caught > 0)
{
sig->caught = 0;
- sig->handler ();
+ if (sig->handler)
+ sig->handler ();
}
}
}