piping processes

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Dec 1 04:14:07 PST 2011


> On 12/1/11, Regan Heath <regan at netmail.co.nz> wrote:
>> you should (ideally) be closing childStdoutWrite and
>> childStdinRead /after/ CreateProcess.  If you don't you get 2 copies of
>> them, one in the child and one in the parent.

Ok so I should move CloseHandle(childStdoutWrite) immediately after a
successful call to CreateProcess? And add CloseHandle for
childStdinRead. I've noticed now childStdinRead was never even closed.


More information about the Digitalmars-d-learn mailing list