in reply to Re^4: Open3 and IO:Select on Win32
in thread Open3 and IO:Select on Win32
Or is waitpid needed?
No, though it won't harm. On Windows, when a process terminates the OS stores the return code, so it can be retrieved, and kills the process. Unlike *nix where processes hang around as zombies until something asks them for their return code.
So on Windows all waitpit does -- assuming the process has actually already completed, which it will have by the time you've read all its output -- is just request the rc from the OS.
Also, I was checking $fh against $out and $err before (see OP), I don't really seem to have that option now. What can I do to compensate or should I not bother?
This call doesn't allow you to differentiate between that output that came from stdout and that from stderr -- hence the open2.5.
Whilst it would be possible to do a full open3 compatible call, I've never needed it.
|
|---|