forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: restart child process if it died before signaling its readiness
The child process (the one being monitored) could die before it was able to call fork_notify_startup() function. If such situation arises, then parent process (the one monitoring child process) would also terminate with a fatal log message: ...|EMER|fork child died before signaling startup (killed (...)) This patch changes that behavior by always restarting child process if it was able to start up at least once in the past. However, if child was not able to start up even once, then the monitor process would still terminate, because that would most likely indicate a persistent programming or system error. To reproduce use following script: while : ; do kill -SIGSEGV `cat /var/run/openvswitch/ovs-vswitchd.pid`; done Signed-Off-By: Ansis Atteka <[email protected]> Acked-by: Ben Pfaff <[email protected]> VMware-BZ: 1273550
- Loading branch information
Ansis Atteka
committed
Jul 10, 2014
1 parent
4537a42
commit b925336
Showing
1 changed file
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters