diff options
author | Gurucharan Shetty <guru@ovn.org> | 2020-09-18 14:43:32 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2020-09-21 18:31:59 -0700 |
commit | 4d6e7ddacbf6c14ec3ddd37eff4953e1080d45df (patch) | |
tree | 03d49ac51159afa7f69feb43319f13e421b11759 /datapath-windows | |
parent | 0026d9dcb0865e8ba48b57429da25ace0df43d41 (diff) | |
download | openvswitch-4d6e7ddacbf6c14ec3ddd37eff4953e1080d45df.tar.gz |
ovs-lib: Handle daemon segfaults during exit.
Currently, we terminate a daemon by trying
"ovs-appctl exit", "SIGTERM" and finally "SIGKILL".
But the logic fails if during "ovs-appctl exit", the
daemon crashes (segfaults). The monitor will automatically
restart the daemon with a new pid. The current logic of
checking the non-existance of old pid succeeds and we proceed
with the assumption that the daemon is dead.
This is a problem during OVS upgrades as we will continue
to run the older version of OVS.
With this commit, we take care of this situation. If there
is a segfault, the pidfile is not deleted. So, we wait a
little to give time for the monitor to restart the daemon
(which is usually instantaneous) and then re-read the pidfile.
VMware-BZ: #2633995
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Diffstat (limited to 'datapath-windows')
0 files changed, 0 insertions, 0 deletions