create the pipe using IPC::Open[23]. This will allow you to separate the closing of the pipe from the waiting/reaping of the child.
Note that you can close a Perl-opened pipe w/o waiting for the child by re-opening the pipe instead of directly closing it. Re-open the file handle to File::Spec->devnull() and then close that.
- tye
In reply to Re^3: wait versus close on a pipe (open)
by tye
in thread wait versus close on a pipe
by daven7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |