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>
Tue, 29 Nov 2011 00:56:44 +0000 (16:56 -0800)
commit41ccd14b9af9a5b37d331070b0c77fb398495f78
treed5799d3c86349906b0a0576e3e2598fab914b217
parentfe3311642fbebd53608523574cecd45f893c1911
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