diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index c89d00b06..19aade866 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -903,6 +903,7 @@ sub runcmd3 { #a proper runcmd that indpendently returns stdout, stderr, pid and foreach (@indata) { print $cmdin $_; } + close($cmdin); my @handles; while (@handles = $cmdsel->can_read()) { foreach (@handles) {