caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Named pipe problem: is this a bug?
Date: Mon, 1 Aug 2005 16:55:59 +0100	[thread overview]
Message-ID: <20050801155557.GA4430@furbychan.cocan.org> (raw)
In-Reply-To: <F0577640-623F-4147-9745-300F4303D3E6@polytechnique.org>

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


  parent reply	other threads:[~2005-08-01 15:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 15:03 Alan Schmitt
2005-08-01 15:41 ` [Caml-list] " Virgile Prevosto
2005-08-01 15:42 ` Damien Bobillot
2005-08-01 15:55 ` Richard Jones [this message]
2005-08-02  7:59 ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050801155557.GA4430@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=alan.schmitt@polytechnique.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).