From bc74953205ccb108037a417751607197cec38b6d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 18 May 2010 21:01:49 +0000 Subject: [PATCH] -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 --- perl-xCAT/xCAT/Utils.pm | 1 + 1 file changed, 1 insertion(+) 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) {