in reply to Re^2: waitpid on Win32 ... wait forever
in thread waitpid on Win32 ... wait forever
You're right. You'd have to doing something like:
my $t1 = async{ 1 while <$out> }; my $t2 = async{ 1 while <$err> }; $_->join for $t1, $t2; ...
However, if your redirecting stdout to stderr, is there any point in reading stdout? And if you're going to discard the output without looking at it, why not just dump the whole lot to nul and have done with it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: waitpid on Win32 ... wait forever
by ikegami (Patriarch) on May 08, 2009 at 15:56 UTC |