From: Xavier Leroy <xavier.leroy@inria.fr>
To: Cezary Kaliszyk <ck189400@zodiac.mimuw.edu.pl>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml 3.06 bug
Date: Tue, 1 Oct 2002 11:57:28 +0200 [thread overview]
Message-ID: <20021001115728.A4962@pauillac.inria.fr> (raw)
In-Reply-To: <20020920134721.GA19681@zodiac.mimuw.edu.pl>; from ck189400@zodiac.mimuw.edu.pl on Fri, Sep 20, 2002 at 03:47:21PM +0200
> 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).
- Xavier Leroy
-------------------
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
next prev parent reply other threads:[~2002-10-01 9:57 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 [this message]
2002-10-01 16:53 ` Thaddeus L. Olczyk
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=20021001115728.A4962@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=ck189400@zodiac.mimuw.edu.pl \
/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