Commit 6b8feb22 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent 1439c354
...@@ -536,8 +536,15 @@ if (-e "$VNDIR/vnode.info") { ...@@ -536,8 +536,15 @@ if (-e "$VNDIR/vnode.info") {
} }
} }
if ($teardown) { if ($teardown) {
TearDownStaleVM() == 0 if (TearDownStaleVM()) {
or fatal("Could not tear down stale container"); #
# This really sucks. We have to be careful that the caller
# (vnodesetup) does not remove the data directory, or else
# we will not be able to come back here next time for cleanup.
#
print STDERR "Could not tear down stale container\n";
exit(1);
}
# See MOUNTED case above; we set leaveme to keep the container # See MOUNTED case above; we set leaveme to keep the container
# file systems, but must reset leaveme. # file systems, but must reset leaveme.
$leaveme = 0; $leaveme = 0;
......
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