From owner-freebsd-current Mon Jan 26 05:40:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA21956 for current-outgoing; Mon, 26 Jan 1998 05:40:36 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA21950; Mon, 26 Jan 1998 05:40:32 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id AAA30019; Tue, 27 Jan 1998 00:33:55 +1100 Date: Tue, 27 Jan 1998 00:33:55 +1100 From: Bruce Evans Message-Id: <199801261333.AAA30019@godzilla.zeta.org.au> To: dyson@FreeBSD.ORG, randy@covalent.net Subject: Re: Cyclades/Hylafax/SMP select problems? Cc: brian@worldcontrol.com, current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk >Seems that a change to open the FIFO O_RDWR solves the problem. >Apparently, select() is returning when it should not be. This >must be a new bug in select(). More likely, select() is returning when it should be. Fifos used to have a bug that caused them to hang (in the not-O_NONBLOCK case) for all except the first read on a fifo with no writers. select() should have had bug for bug compatibility with read(). Now it should return immediately if there are no writers. O_RDWR might work around a bug in hylafax by ensuring that there is always a writer. Bruce