caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: olczyk@interaccess.com (Thaddeus L. Olczyk)
To: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml 3.06 bug
Date: Tue, 01 Oct 2002 16:53:48 +0000 (GMT)	[thread overview]
Message-ID: <3d99d2ab.4138061750@smtp.interaccess.com> (raw)
In-Reply-To: <20021001115728.A4962@pauillac.inria.fr>

On Tue, 01 Oct 2002 11:57:28 +0200, Xavier Leroy
<xavier.leroy@inria.fr> wrote:

>> There is a bug in the Unix library, which makes my program exit with
>> no warning message.
>> 
>> It happens when I call Unix.write two times on a descriptor closed
>> by the other side.
>
>It's not an OCaml bug, it's a Unix feature.  Writes on a socket that
>corresponds to a closed connection generates a SIGPIPE signal, whose
>default effect is to kill your process.  
>
>There are ways to catch SIGPIPE or to replace it by an error code
>generated by Unix.write; please consult a Unix programming guide
>(e.g. Steven's books).
>
You are begging the question.
Reading Stevens won't help much if you don't know how signals are
handled in OCaml.
-------------------
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:[~2002-10-01 16:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-20 13:47 Cezary Kaliszyk
2002-10-01  9:57 ` Xavier Leroy
2002-10-01 16:53   ` Thaddeus L. Olczyk [this message]
2002-10-01 17:41     ` Luc Maranget

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=3d99d2ab.4138061750@smtp.interaccess.com \
    --to=olczyk@interaccess.com \
    --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).