fix the issue that SIG[CHLD] is null

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2011-04-14 09:31:23 +00:00
parent e748fe4c13
commit 1538339988

View File

@ -312,7 +312,7 @@ sub renergy {
# Disable the CHID signal before run the command. Otherwise the
# $? value of `$cmd` will come from handler of CHID signal
$SIG{CHLD} = ();
$SIG{CHLD} = 'DEFAULT';
# Call the xCAT_cim_client to query or set the energy capabilities
$cmd .= " 2>&1";