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

Attempt to deal with seemingly transient failure when turning firewall

rules back on. The ipfw silently fails, but if I do it a second time,
it works fine. This is bogus of course ...
parent 558c76d3
......@@ -413,8 +413,13 @@ if ($firewalled) {
$UID = 0;
system("$SSH -host $firewall ipfw delete 1");
if ($?) {
print STDERR "*** $0:\n".
" Error turning back on firewall rules ($firewall)!\n";
print STDERR "*** Error turning back on firewall rules ($firewall)!\n".
" Will retry again.\n";
system("$SSH -host $firewall ipfw delete 1");
if ($?) {
die("*** $0:\n".
" Error turning back on firewall rules! Retry failed.\n");
}
}
$UID = $SAVEUID;
}
......
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