in reply to Re^2: wait versus close on a pipe
in thread wait versus close on a pipe

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