Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2001 01:31:43 -0800
From:      Bill Fenner <fenner@research.att.com>
To:        bde@zeta.org.au
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:  <200111100931.BAA04711@windsor.research.att.com>

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

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

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

  Bill

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?200111100931.BAA04711>