From owner-cvs-all Fri Nov 9 22:31:27 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 622E637B41B; Fri, 9 Nov 2001 22:31:22 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA01577; Sat, 10 Nov 2001 17:31:19 +1100 Date: Sat, 10 Nov 2001 17:30:10 +1100 (EST) From: Bruce Evans X-X-Sender: To: Alfred Perlstein Cc: , Subject: Re: cvs commit: src/sys/fs/fifofs fifo_vnops.c In-Reply-To: <20011109164155.E89342@elvis.mu.org> Message-ID: <20011110171622.E16051-100000@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 9 Nov 2001, Alfred Perlstein wrote: > * Bruce Evans [011109 03:53] wrote: > > On Thu, 8 Nov 2001, Alfred Perlstein wrote: > > > ... > > > Revision Changes Path > > > 1.56 +6 -1 src/sys/fs/fifofs/fifo_vnops.c > > ... > > Please back this out. > > I've never had a feeling that I own any code, so please feel free > to _replace_ (not back out) the current implementation as long as > your replacement implementation that doesn't offer semantics that > suck raw eggs like the pre-BSD/os derived fix implementation does. I feel free to back it out. > Then either fix or tell me how to fix lockd to cope with the change > and I will. Doesn't it work to do a dummy open for writing? This breaks detection of whether there is no real writer (see another reply), but so does clearing SS_CANTRCVMORE. To get unusual semantics for sockets, you would use setsockopt() to set some flag like SO_DONTSETCANTRCVMORE. The socket internals are hard to get at for fifos, but maybe a file flag could be used instead. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message