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 LAA05414; Tue, 1 Oct 2002 11:57:31 +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 LAA05513 for ; Tue, 1 Oct 2002 11:57:30 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g919vT510291; Tue, 1 Oct 2002 11:57:29 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA05515; Tue, 1 Oct 2002 11:57:28 +0200 (MET DST) Date: Tue, 1 Oct 2002 11:57:28 +0200 From: Xavier Leroy To: Cezary Kaliszyk Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml 3.06 bug Message-ID: <20021001115728.A4962@pauillac.inria.fr> References: <20020920134721.GA19681@zodiac.mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i 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 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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