<?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="2005/05/fdf2bd05783c0bb0de410011f1a4ac08"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-31T19:33:09"
  subject="Descriptor leak in Unix.close_process*"
  prev="2005/05/8f8e681be57451487daa6b4e2be7fbe5"
  next="2005/05/254de433600810d5340a4bcd3c31c1f3"
  prev-thread="2005/05/8f8e681be57451487daa6b4e2be7fbe5"
  next-thread="2005/06/703017c8162900d812cfe22a9caca284"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Descriptor leak in Unix.close_process*">
<msg 
  url="2005/05/fdf2bd05783c0bb0de410011f1a4ac08"
  from="Sami Liedes &lt;sliedes@c...&gt;"
  author="Sami Liedes"
  date="2005-05-31T19:33:09"
  subject="Descriptor leak in Unix.close_process*">
</msg>
</thread>

<contents>
I think there's a descriptor leak in Unix.close_process_full and
possibly other close_process* functions. If there's an error in
closing one of the descriptors, I think the correct behavior would be
to close the rest nevertheless before throwing a Unix_error exception.

I think this can happen in some conditions (SIGPIPE?) even without
having explicitly closed some of the descriptors. Now I have a
situation where a mere Unix.close_process_full will result in a
descriptor leak but explicitly trying to close them one by one will
not.

	Sami

</contents>

</message>

