Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 21:47:36 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bill Fenner <fenner@research.att.com>
Cc:        <alfred@freebsd.org>, <cvs-committers@freebsd.org>, <cvs-all@freebsd.org>
Subject:   Re: cvs commit: src/sys/fs/fifofs fifo_vnops.c
Message-ID:  <20011110213951.L17380-100000@delplex.bde.org>
In-Reply-To: <200111100931.BAA04711@windsor.research.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 10 Nov 2001, Bill Fenner wrote:

> >For read(), it is normal to have to spin if there is no writer and you
> >don't want to block.
>
> You don't get a choice.  POSIX [seems to say] that a blocking read on
> a FIFO with no writers will return 0, forcing you to spin no matter what.

Oops.  (I think it is clear that POSIX actually says this.  So the only
way to avoid spinning is to do a blocking open().)

> FIFO permissions mean that it's possible that the reader cannot
> supply a phantom writer.

I forgot that you mentioned this before.

Bruce


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




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