daemon: Better log when fork child dies early from signals.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Nov 2011 20:15:42 +0000 (12:15 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 28 Nov 2011 20:33:34 +0000 (12:33 -0800)
commit2c8fcc9cd6a7bbb948f6c79879e89c7ed791c9b1
treef07cbb03ab1902ccd6897fbed6ef156add671a3c
parent2c5a6834513540a494bfb3bfc48b8a91c4126a11
daemon: Better log when fork child dies early from signals.

On one machine, "/etc/init.d/openvswitch-switch start" failed to start
with:

   ovs-vswitchd: fork child failed to signal startup (Success)
   Starting ovs-vswitchd ... failed!

"strace" revealed that the fork child was actually segfaulting, but the
message output didn't indicate that in any way.  This commit fixes the
log message (but not the segfault itself).

Reported-by: Michael Hu <mhu@nicira.com>
Bug #8457.
lib/daemon.c
python/ovs/daemon.py