Commit 68d00983 authored by Mike Hibler's avatar Mike Hibler
Browse files

Put a timeout on the tmcc SHUTDOWN call.

Otherwise, an ops node will hang forever shutting down if the boss node
is down.
parent 9645f36f
......@@ -187,7 +187,7 @@ sub doboot()
sub doshutdown()
print("Informing Emulab Control that we are are rebooting\n");
if (tmcc(TMCCCMD_STATE, "SHUTDOWN") < 0) {
if (tmcc(TMCCCMD_STATE, "SHUTDOWN", undef, ("timeout" => 3)) < 0) {
fatal("Error sending SHUTDOWN to Emulab Control!");
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