From owner-freebsd-questions Thu Sep 7 7:34: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sunny.pacific.net.sg (sunny.pacific.net.sg [203.120.90.127]) by hub.freebsd.org (Postfix) with ESMTP id 9D76037B423 for ; Thu, 7 Sep 2000 07:34:05 -0700 (PDT) Received: from pop2.pacific.net.sg (pop2.pacific.net.sg [203.120.90.86]) by sunny.pacific.net.sg with ESMTP id e87EY0U29861; Thu, 7 Sep 2000 22:34:01 +0800 (SGT) Received: from tanjkvaio (p68.stsn.com [12.23.69.68] (may be forged)) by pop2.pacific.net.sg with SMTP id WAA20025; Thu, 7 Sep 2000 22:33:45 +0800 (SGT) From: "Tan Juay Kwang" To: "Alfred Perlstein" , "Robert Dean" Cc: Subject: RE: select() returns on empty pipes Date: Thu, 7 Sep 2000 22:34:33 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20000907021918.U18862@fw.wintelcom.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I don't get it what you say 'mimick the Linux FIFO behavior'. I mean, shouldn't select(2) not return on empty pipes. Actually, I notice this a couple of weeks ago and I thought it could be due to a race condition whereby the second process opens the pipe for writing and triggering select(2) in the reading process to return before it gets a chance to actually put something on the pipe. I was on a dateline so I abandoned the whole idea and switch to unix domain socket instead and forgot about the whole thing. Just curious, are there many applications that uses named pipe nowadays? Regards, Juay Kwang > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Alfred > Perlstein > Sent: Thursday, September 07, 2000 5:19 PM > To: Robert Dean > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: select() returns on empty pipes > > > * Robert Dean [000906 23:00] wrote: > > > > I am in the process of porting and existing Linux application > > (http://dbmix.sourceforge.net) to FreeBSD at the request of > one of my er... > > clients ? (how's that work in open source anyways? Is he a > client? a user?) > > > > The core of the system is a sound daemon which accepts data > from named > > fifos, and combines the data into a single output stream > before sending it > > to a soundcard. > > > > Under linux, I achieved this with named pipes and a call to > select(), and I > > used the Stevens system V programming manual as my resource. > > We're actually working on a fix, the discussion about this > started about > a day ago, my impression is that really soon now we'll > provide a useable > fix which is probably going to mimick the Linux FIFO behavior. > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > "I have the heart of a child; I keep it in a jar on my desk." > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message