]> git.ipfire.org Git - thirdparty/libvirt.git/commit
process: wait longer 5->30s on hard shutdown
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 6 Aug 2018 10:10:38 +0000 (12:10 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Tue, 21 Aug 2018 15:37:10 +0000 (17:37 +0200)
commit9a4e4b942df0474503e7524ea427351a46c0eabe
tree24f178925c089f4c43804032eeca49674452a8c6
parentbe2ca0444728edd12a000653d3693d68a5c9102f
process: wait longer 5->30s on hard shutdown

In cases where virProcessKillPainfully already reailizes that
SIGTERM wasn't enough we are partially on a bad path already.
Maybe the system is overloaded or having serious trouble to free and
reap resources in time.

In those case give the SIGKILL that was sent after 10 seconds some more
time to take effect if force was set (only then we are falling back to
SIGKILL anyway).

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virprocess.c