From: rogero on
On Mar 3, 7:51 pm, IlyaK <katsnel...(a)gmail.com> wrote:
> Can you please point out where the error is?
> Obviously I don't see it.

Apply the following:
- The read will return zero when the last write handle to the pipe
closes.
- The child process has completed, so it can't be holding handles.

So who has this handle open?

The main process.
So close *that* copy of the handle and it'll work as expected.

Regards,
Roger.