Commit 76fc68a9 authored by Mac Newbold's avatar Mac Newbold
Browse files

Whitespace changes in a separate commit...

parent e63654b0
...@@ -156,7 +156,7 @@ if ($freemode) { ...@@ -156,7 +156,7 @@ if ($freemode) {
print STDOUT "There are no free nodes to reboot\n"; print STDOUT "There are no free nodes to reboot\n";
usage(); usage();
} }
while (@row = $query_result->fetchrow_array()) { while (@row = $query_result->fetchrow_array()) {
push(@nodes, $row[0]); push(@nodes, $row[0]);
} }
...@@ -373,7 +373,7 @@ if (! $force) { ...@@ -373,7 +373,7 @@ if (! $force) {
waitpid($mypid, 0); waitpid($mypid, 0);
$status = $? >> 8; $status = $? >> 8;
} }
if ($status == 2) { if ($status == 2) {
# Child signaled to us that this node needs a power cycle # Child signaled to us that this node needs a power cycle
push @needPowercycle, $node; push @needPowercycle, $node;
...@@ -472,7 +472,7 @@ sub RebootNode { ...@@ -472,7 +472,7 @@ sub RebootNode {
# #
# In killmode, we do not want to bother with sending a wakeup event. # In killmode, we do not want to bother with sending a wakeup event.
# Just do the power cycle. This is used to unstick a machine that # Just do the power cycle. This is used to unstick a machine that
# is in waitmode, but not responding to the wakeups. # is in waitmode, but not responding to the wakeups.
# #
if ($killmode) { if ($killmode) {
info("$pc: in $nodestate: but power cycling in killmode"); info("$pc: in $nodestate: but power cycling in killmode");
...@@ -481,12 +481,12 @@ sub RebootNode { ...@@ -481,12 +481,12 @@ sub RebootNode {
# Signal to the caller that the node needs to be power cycled # Signal to the caller that the node needs to be power cycled
return -2; return -2;
} }
# #
# The aux program sends the event to stated ... # The aux program sends the event to stated ...
# #
my $optarg = ($debug ? "-dd" : ""); my $optarg = ($debug ? "-dd" : "");
print STDERR "$pc: in $nodestate: sending wakeup command.\n" if $debug; print STDERR "$pc: in $nodestate: sending wakeup command.\n" if $debug;
system("$bisend $optarg -q $pc"); system("$bisend $optarg -q $pc");
if ($?) { if ($?) {
...@@ -501,7 +501,7 @@ sub RebootNode { ...@@ -501,7 +501,7 @@ sub RebootNode {
# #
# Do the rest in a child process. After the fork, we do the ping test # Do the rest in a child process. After the fork, we do the ping test
# before we reconnect to the DB. This cuts down on the flurry of connects # before we reconnect to the DB. This cuts down on the flurry of connects
# by a bunch of children (ping will take a moment to run). # by a bunch of children (ping will take a moment to run).
# #
$mypid = fork(); $mypid = fork();
if ($mypid) { if ($mypid) {
...@@ -708,7 +708,7 @@ sub WaitTillDead { ...@@ -708,7 +708,7 @@ sub WaitTillDead {
# #
# Returns 1 if host is responding to pings, 0 otherwise # Returns 1 if host is responding to pings, 0 otherwise
# This routine is NOT allowed to do any DB queries! # This routine is NOT allowed to do any DB queries!
# #
sub DoesPing { sub DoesPing {
my ($pc) = @_; my ($pc) = @_;
......
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