Commit b71908f3 authored by Mac Newbold's avatar Mac Newbold

If we're doing a forceswap or an idleswap (admin only options), pass -force to tbswap.

parent c9d5cd3d
......@@ -411,8 +411,9 @@ if ($inout ne "restart" && -e $repfile) {
# Sanity check states in case someone changes something.
#
if ($inout eq "out") {
if ($force || $idleswap) { $arg = "-force"; } else { $arg = ""; }
print STDOUT "Running 'tbswap out' with arguments: $pid $eid\n";
if (system("$tbdir/tbswap out $pid $eid") != 0) {
if (system("$tbdir/tbswap out $arg $pid $eid") != 0) {
$errorstat = $? >> 8;
fatal("tbswap out failed!\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