diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-26 01:28:13 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-27 19:54:57 +0200 |
commit | 1e7e440f5a5555b286e9b6265e9e481d11123fcd (patch) | |
tree | 496ca09cbecb0b7997b93c755a3951ab7b6280a7 /lib/sigevent.c | |
parent | ldpd: simplify handling of configuration commands (diff) | |
download | frr-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.c | 3 |
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 (); } } } |