]> git.ipfire.org Git - thirdparty/lldpd.git/commit
priv: monitor the monitor process
authorVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 13:20:26 +0000 (14:20 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 13:20:26 +0000 (14:20 +0100)
commit327b1d625c2df0a8d078356f16c2c3f0aa06d485
tree4f31f39530ef6f02728ac8cbbeeb2edce6b1ba39
parenta87db231990af317cfb07aa8f725a40c0aa45713
priv: monitor the monitor process

By monitoring the socket connection with the monitor process, we ensure
that we kill ourselves if the monitor disappears and fails to notice us.

This doesn't work yet because there is no "end of file" event for a
SOCK_DGRAM. See the next commit.
src/daemon/event.c
src/daemon/lldpd.h
src/daemon/privsep_io.c