]> git.ipfire.org Git - thirdparty/lldpd.git/commit
daemon: don't use SIGSTOP when using Upstart
authorVincent Bernat <vincent@bernat.im>
Sat, 30 Sep 2017 10:48:33 +0000 (12:48 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 2 Oct 2017 20:00:15 +0000 (22:00 +0200)
commit7a730affb9ff35caf779f2cd5e4fd96ffa72842a
treeac3d05b55d4efbb8e1b90a2938e1c55ca0d3dfe8
parent2eb77609706bd6aadf1c10f195391219ccb9fa4b
daemon: don't use SIGSTOP when using Upstart

This is buggy because if lldpd happens to stop before sending SIGSTOP,
Upstart won't respawn it. See:
 https://bugs.launchpad.net/upstart/+bug/712351

Instead, let Upstart detects the double fork. This should work just
fine as there is no "trap" before daemonizing.

Fix #245
NEWS
debian/lldpd.upstart
src/daemon/lldpd.c