But... you are closing the pipe yourself before the process has a chance to terminate: the close() above the waitpid().
If you want to get rid of stderr, simply redirect it. There's no need to mess with open3().
In reply to Re: Premature close of the pipe
by Anonymous Monk
in thread Premature close of the pipe
by Superfox il Volpone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |