Use select to poll for available data on each of your filehandles, adding to a variable to keep track of the amount of output they've produced.
In reply to Re: Redirecting stdout/stderr to pipe
by Roy Johnson
in thread Redirecting stdout/stderr to pipe
by 0xbeef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |