Commit f75131f0 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix call to waitpid to wait on actual pid. Thanks Mike.

parent 818efbdd
......@@ -428,8 +428,8 @@ sub RebootNode {
$syspid = fork();
if ($syspid) {
local $SIG{ALRM} = sub { kill("TERM", $syspid); };
alarm 15;
waitpid($mypid, 0);
alarm 60;
waitpid($syspid, 0);
alarm 0;
#
......
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