caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: tim@fungible.com (Tim Freeman)
To: xavier.leroy@inria.fr
Cc: Christian.Schaller@siemens.com, caml-list@inria.fr
Subject: Re: [Caml-list] closing file descriptors and channels
Date: Thu, 20 Nov 2003 10:01:14 -0700	[thread overview]
Message-ID: <20031120180446.6092F7F9D@lobus.fungible.com> (raw)
In-Reply-To: <20031120173538.B14255@pauillac.inria.fr> (message from Xavier Leroy on Thu, 20 Nov 2003 17:35:38 +0100)

From: Xavier Leroy <xavier.leroy@inria.fr>
>The other possibility is to use close_out_noerr and close_in_noerr
>that will just ignore the errors arising from the closing of the
>underlying file descriptor.  But this can be dangerous: certain
>implementations of NFS can report write errors not at the time of the
>writing, but at the time of the closing, and presumably you're
>interested in getting these errors reported.

It's also dangerous if you have multiple threads because the scenario
I mentioned at http://caml.inria.fr/archives/200311/msg00254.html is
possible.
-- 
Tim Freeman                                                  tim@fungible.com
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D  7180 76DF FE00 34B1 5C78 
Your levity is good.  It relieves tension and fear of death.  -- Terminator 3

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-11-20 18:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 16:14 Christian Schaller
2003-11-20 16:35 ` Xavier Leroy
2003-11-20 17:01   ` Tim Freeman [this message]
2003-11-20 17:14   ` Nicolas George
2003-11-20 16:55 Christian Schaller
2003-11-20 16:54 ` Tim Freeman
2003-11-21 16:28   ` skaller

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=20031120180446.6092F7F9D@lobus.fungible.com \
    --to=tim@fungible.com \
    --cc=Christian.Schaller@siemens.com \
    --cc=caml-list@inria.fr \
    --cc=xavier.leroy@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).