]> git.ipfire.org Git - thirdparty/lldpd.git/commit
priv: on Linux, when monitor dies, kill child
authorVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 09:00:44 +0000 (10:00 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 09:00:44 +0000 (10:00 +0100)
commit4747e964096a1b490de062460608805c46f0cfd2
tree979ef0a0ea59b06aceba5b6b250ac1c4a5ca284c
parent50efc5f74521617d08c297d08f8233ac7d5b96e9
priv: on Linux, when monitor dies, kill child

When the monitor dies, it sends its child a TERM signal but if it
segfaults or is killed with an uncatchable signal, the child will
continue to run "unharmed". On Linux, it is possible to send a signal to
the child in this case, with `prctl()`. Do that.
src/daemon/lldpd.h
src/daemon/priv-bsd.c
src/daemon/priv-linux.c
src/daemon/priv.c