This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Debugging problem in peek_pipe in select.cc


>  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?

>  If you are still seeing hangs in the most recent sources, then there is
>  still some kind of race with the guard mutex in peek_pipe.  That is
>  where you will need to investigate.

OK, I'll update my sources and see if I can get it to happen again.

Thanks,

  jik


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]