]> git.ipfire.org Git - thirdparty/lldpd.git/commit
ctl: create control socket with close-on-exec semantic
authorVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 14:14:41 +0000 (15:14 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 18 Mar 2015 14:14:41 +0000 (15:14 +0100)
commit9475dd4c835e23e87967d9668d8a004933384e5c
treeafcfad52665a08a0bd1d0d691ce8bfe99225c35d
parentc642d8c7b9e4cd52f3efc155ce402330949c4f57
ctl: create control socket with close-on-exec semantic

Otherwise, when we spawn lldpcli, it inherits the file descriptor and
doesn't detect if the daemon dies just after because it is listening
itself to the Unix socket.
src/ctl.c