From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA17151; Tue, 1 Oct 2002 18:56:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA17057 for ; Tue, 1 Oct 2002 18:56:51 +0200 (MET DST) Received: from chimta03.algx.net (chimta03.algx.net [216.99.233.78]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g91Guo506147 for ; Tue, 1 Oct 2002 18:56:51 +0200 (MET DST) Received: from d250.focal10.interaccess.com (d250.focal10.interaccess.com [207.208.141.250]) by chimmx03.algx.net (iPlanet Messaging Server 5.1 HotFix 1.4 (built Aug 5 2002)) with SMTP id <0H3B003ADAUCZD@chimmx03.algx.net> for caml-list@inria.fr; Tue, 01 Oct 2002 11:51:50 -0500 (CDT) Date: Tue, 01 Oct 2002 16:53:48 +0000 (GMT) From: olczyk@interaccess.com (Thaddeus L. Olczyk) Subject: Re: [Caml-list] Ocaml 3.06 bug In-reply-to: <20021001115728.A4962@pauillac.inria.fr> To: caml-list@inria.fr Reply-to: olczyk@interaccess.com Message-id: <3d99d2ab.4138061750@smtp.interaccess.com> Organization: stickit@nospammers.com MIME-version: 1.0 X-Mailer: Forte Agent 1.5/32.451 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <20020920134721.GA19681@zodiac.mimuw.edu.pl> <20021001115728.A4962@pauillac.inria.fr> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 01 Oct 2002 11:57:28 +0200, Xavier Leroy 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