English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Named pipe problem: is this a bug?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-01 (15:45)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Named pipe problem: is this a bug?
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:



Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com