-Fix runcmd3 to close input of command to properly signal end of input

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6161 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-05-18 21:01:49 +00:00
parent 37189c8616
commit bc74953205

View File

@ -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) {