<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/14cf1145f2220b2d5d5aa66a8883d5d9"
  from="tim@f..."
  author="tim@f..."
  date="2003-11-20T18:04:57"
  subject="Re: [Caml-list] closing file descriptors and channels"
  prev="2003/11/e91ee45628b74c0778bbf6e062e9de53"
  next="2003/11/ac68477a0da5d7dbb8ba9e0bbe74e550"
  prev-in-thread="2003/11/c8c057fcc1099e7256ffb1a4b070af84"
  prev-thread="2003/11/94ca042f44be533f27f5a8b42b4b788f"
  next-thread="2003/11/5bd426650020fd2fdf52e8c681dca310"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] closing file descriptors and channels">
<msg 
  url="2003/11/81eb4f0d376b6f9e176101051e0c06b2"
  from="Christian Schaller &lt;Christian.Schaller@s...&gt;"
  author="Christian Schaller"
  date="2003-11-20T16:14:15"
  subject="[Caml-list] closing file descriptors and channels">
<msg 
  url="2003/11/04de965f854f12208253598597db7c35"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-11-20T16:35:41"
  subject="Re: [Caml-list] closing file descriptors and channels">
<msg 
  url="2003/11/c8c057fcc1099e7256ffb1a4b070af84"
  from="Nicolas George &lt;nicolas.george@e...&gt;"
  author="Nicolas George"
  date="2003-11-20T17:14:06"
  subject="Re: [Caml-list] closing file descriptors and channels">
</msg>
<msg 
  url="2003/11/14cf1145f2220b2d5d5aa66a8883d5d9"
  from="tim@f..."
  author="tim@f..."
  date="2003-11-20T18:04:57"
  subject="Re: [Caml-list] closing file descriptors and channels">
</msg>
</msg>
</msg>
</thread>

<contents>
From: Xavier Leroy &lt;xavier.leroy@inria.fr&gt;
&gt;The other possibility is to use close_out_noerr and close_in_noerr
&gt;that will just ignore the errors arising from the closing of the
&gt;underlying file descriptor.  But this can be dangerous: certain
&gt;implementations of NFS can report write errors not at the time of the
&gt;writing, but at the time of the closing, and presumably you're
&gt;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

</contents>

</message>

