From 0eb3645d3670b7a579ddfa7c97aa6bb1a8897fcd Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 5 May 2009 19:13:15 +0000 Subject: [PATCH] -Change psh semantics to track children in a more accurate fashion git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/psh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/psh b/xCAT-client/bin/psh index ccb93e13d..ff3e903e4 100755 --- a/xCAT-client/bin/psh +++ b/xCAT-client/bin/psh @@ -120,11 +120,13 @@ foreach (@nodes) { $inputs->add($child); $nodehdl{$child} = $node; } -while ($inputs->count and $children) { +while ($inputs->count) { processoutput($inputs); } while (processoutput($inputs)) {}; -wait; +while (wait != -1) { + yield; +} my $exitcode=0; foreach (values %pids) { my $possible_codes = join ",",keys %foundcodes;