diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-25 21:28:13 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-27 14:54:57 -0300 |
| commit | 1e7e440f5a5555b286e9b6265e9e481d11123fcd (patch) | |
| tree | 496ca09cbecb0b7997b93c755a3951ab7b6280a7 /lib/sigevent.c | |
| parent | 56b8a8d231bf36a7011eb97eb115a148b3395635 (diff) | |
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 a120028d81..09f07180ce 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 (); } } } |
