Commit 46fd3a20 authored by Leigh Stoller's avatar Leigh Stoller

Minor tweak to the monitor; watch for the instance being terminated

while the monitor is running.
parent f98ab0e5
......@@ -2779,8 +2779,14 @@ sub StartMonitorInternal(;$@)
# Lock the slice in case it is doing something else, like taking
# a disk image. Just skip this turn.
#
goto delay
if ($slice->Lock());
if ($slice->Lock()) {
#
# Lets make sure the instance still exists. It could disappear
# during the sleep, which would cause the Lock() to fail.
last
if ($instance->Refresh());
goto delay;
}
my $handler = sub {
# This is so we can catch when Parrun gets signaled, but not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment