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

Check exit status of archive_control so that a failed archive

operation aborts the stoprun.
parent b87d7501
...@@ -514,7 +514,9 @@ if (defined($instance->runidx())) { ...@@ -514,7 +514,9 @@ if (defined($instance->runidx())) {
$instance->Stamp("template_exprun", "commit starting"); $instance->Stamp("template_exprun", "commit starting");
} }
system("$archcontrol -d -t stoprun_${this_runid} ". system("$archcontrol -d -t stoprun_${this_runid} ".
"-c 'Stopping Run $this_runid' commit $pid $eid"); "-c 'Stopping Run $this_runid' commit $pid $eid")
== 0 or fatal(-1, "Aborting the stoprun cause the commit failed");
if ($STAMPS) { if ($STAMPS) {
$instance->Stamp("template_exprun", "commit done"); $instance->Stamp("template_exprun", "commit done");
} }
Supports Markdown
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