From c24a0183dd4996dceec879f01d5d4a774f93d328 Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 10 Nov 2009 15:36:19 +0000 Subject: [PATCH] Commented out: use warnings. It takes care of this error, which you get when running rpower() in bypass mode: Use of uninitialized value in numeric eq (==) at /opt/xcat/lib/perl/xCAT_plugin/zvm.pm line 74. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/zvm.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index 8806dfab3..12d74326c 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -18,7 +18,7 @@ use xCAT::Table; use xCAT::Utils; use Getopt::Long; use strict; -use warnings; +# use warnings; # If this line is not included, you get: # /opt/xcat/lib/perl/xCAT_plugin/zvm.pm did not return a true value @@ -339,7 +339,7 @@ sub process_request { # Set the boot state for a noderange elsif ( $command eq "nodeset" ) { foreach (@nodes) { - $pid = fork(); + $pid = xCAT::Utils->xfork(); # Parent process if ($pid) { @@ -365,7 +365,7 @@ sub process_request { # Collects node MAC address elsif ( $command eq "getmacs" ) { foreach (@nodes) { - $pid = fork(); + $pid = xCAT::Utils->xfork(); # Parent process if ($pid) { @@ -392,7 +392,7 @@ sub process_request { foreach (@children) { waitpid( $_, 0 ); } - + return; }