Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2001 00:50:02 -0700 (PDT)
From:      Thomas Quinot <thomas@cuivre.fr.eu.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/19871 select on named pipes always returns 'available for reading'
Message-ID:  <200110160750.f9G7o2f61792@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/19871; it has been noted by GNATS.

From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: freebsd-gnats-submit@freebsd.org
Cc: bde@zeta.org.au, jhb@FreeBSD.ORG, sheldonh@FreeBSD.ORG
Subject: Re: kern/19871 select on named pipes always returns 'available for reading'
Date: Tue, 16 Oct 2001 09:44:08 +0200

 I was bitten by this one last night...
 
 While the interpretation of the POSIX definition for select(2) that
 concludes the current FreeBSD behaviour is legal, it may be worth noting
 that Solaris, Irix, AIX, Linux all disagree with us. (On the other hand,
 DEC Unix agrees).
 
 Moreover, the current behaviour means that there is no way of waiting
 for writers to appear on a FIFO with a select. The only possible way
 to do that is to have a dedicated thread blocked in !O_NONBLOCK read.
 
 I would therefore respectfully suggest that we review our implementation
 against the standard (I'll try to grab the copy in the next office later
 today :) ) and see if we can change our current behaviour.
 
 Thomas.
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110160750.f9G7o2f61792>