Commit d8e8f910 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add a vnode teardown phase to cleanup() so that they get cleaned up if

an experiment fails to setup properly (we were leaving them running).
parent 517149ad
......@@ -65,6 +65,15 @@ sub cleanup {
# This is a hack. We need a more general os_teardown, but for now
# we just kill off the vnode stuff.
TBDebugTimeStamp("vnode_setup -k started");
if (system("vnode_setup -d -k $pid $eid")) {
print STDERR "*** Failed tear down vnodes.\n";
print STDERR "Freeing up nodes.\n";
if (system("nfree $pid $eid")) {
print STDERR "*** Could not free nodes.\n";
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