From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id A7CA8BB88 for ; Mon, 1 Aug 2005 17:45:45 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j71Fjj80009713 for ; Mon, 1 Aug 2005 17:45:45 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA04247 for ; Mon, 1 Aug 2005 17:45:44 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j71FjgeS013278 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 1 Aug 2005 17:45:44 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1Dzce0-0001hq-00; Mon, 01 Aug 2005 16:56:00 +0100 Date: Mon, 1 Aug 2005 16:55:59 +0100 To: Alan Schmitt Cc: caml-list@inria.fr Subject: Re: [Caml-list] Named pipe problem: is this a bug? Message-ID: <20050801155557.GA4430@furbychan.cocan.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at concorde with ID 42EE43A9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42EE43A6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bug:01 nonblock:01 notepad:01 behaviour:01 fifo:04 fifo:04 problem:05 marketing:93 linux:06 business:90 flag:09 documented:10 some:12 case:13 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 This is documented behaviour. You can't open a FIFO in read mode until a writer has opened the FIFO - instead the open(2) syscall will block. You can pass the O_NONBLOCK flag to open, in which case the open call will not block. Or you can open for read and write (because you yourself are then supplying a writer). Some more details here: http://nixdoc.net/man-pages/Linux/man4/fifo.4.html Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com