This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Debugging problem in peek_pipe in select.cc
On Thu, Nov 08, 2001 at 12:24:49PM -0500, Jonathan Kamens wrote:
>> Date: Thu, 8 Nov 2001 12:09:56 -0500
>> From: Christopher Faylor <cgf@redhat.com>
>>
>> The point of my addition of a mutex to peek_pipe was to prevent occurrences
>> of PeekNamedPipe blocking, actually. It can block in pathological situations
>> when another thread/process is doing a blocking read.
>
>Ah, so the MSDN documentation is wrong.
>
>Imagine my surprise :-).
>
>Is it actually documented somewhere else, where I didn't look, that
>PeekNamedPipe can block, or did you just have to figure this out by
>hard experience?
I figured it out by hard experience and then eventually found it mentioned
somewhere in the bowels of MSDN. Needless to say, I was very surprised.
cgf