X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thomas Maier-Komor Subject: race on pipe causing read to erroneously return 0? Date: Sun, 24 Aug 2008 16:00:59 +0200 Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.14 (X11/20080505) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Is it possible that there is somewhere a race condition in the cygwin.dll that causes the reader on a named pipe getting a return value of 0 from read, although another process has already opened the named pipe for writing. In consequence, in my application I see sporadic occurrences of SIGPIPE, when my application closes the named pipe after getting 0 from read. Any ideas? TIA, Thomas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/