Thread: Re: stderr piping under win32

Re: stderr piping under win32

From
Claudio Natoli
Date:
Andreas Pflug writes:
> I wonder why pgpipe is implemented like this, maybe
> because the initial coder didn't know how to inherit handles
> obtained by _pipe(...).

IIRC, it is because the handles returned by the pipe call are later
select()'d on with other sockets, which is not possible with handles
returned by _pipe.

Cheers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

Re: stderr piping under win32

From
Andreas Pflug
Date:
Claudio Natoli wrote:
>
>
> IIRC, it is because the handles returned by the pipe call are later
> select()'d on with other sockets, which is not possible with handles
> returned by _pipe.

That's true, select() is not possible on file and pipe handles. To
achieve wait-and-timeout, WaitForSingleObject is necessary, which will
take a different handle type than _pipe delivers. Well, Tom already made
some comments on M$'s standard compliance...

Regards,
Andreas