From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 457FE7EE80; Fri, 15 Mar 2013 11:02:27 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=pra; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=mailfrom; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@einhorn.in-berlin.de) identity=helo; client-ip=192.109.42.8; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="postmaster@einhorn.in-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AukLAC7wQlHAbSoIe2dsb2JhbABDiDa3RIUTAwGBbRYOAQEWJgQkgioBAQUjBFIQCwkPAgIFIQICDwUYiFgECK8skmMVgQ6NFV0HFoIXMmEDjkOIFoEgkm4 X-IPAS-Result: AukLAC7wQlHAbSoIe2dsb2JhbABDiDa3RIUTAwGBbRYOAQEWJgQkgioBAQUjBFIQCwkPAgIFIQICDwUYiFgECK8skmMVgQ6NFV0HFoIXMmEDjkOIFoEgkm4 X-IronPort-AV: E=Sophos;i="4.84,850,1355094000"; d="scan'208";a="7757572" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Mar 2013 11:02:26 +0100 X-Envelope-From: oliver@first.in-berlin.de Received: from first (e178037077.adsl.alicedsl.de [85.178.37.77]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id r2FA2Oh4022262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 15 Mar 2013 11:02:25 +0100 Received: by first (Postfix, from userid 1000) id B1B3015400E6; Fri, 15 Mar 2013 11:02:24 +0100 (CET) Date: Fri, 15 Mar 2013 11:02:24 +0100 From: oliver To: caml-list@inria.fr Cc: ocsigen@inria.fr Message-ID: <20130315100224.GC1837@siouxsie> References: <5142E780.7060806@hars.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5142E780.7060806@hars.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: [Caml-list] BUG in unix.ml (was: strange errors when linking lwt.unix) Hello, On Fri, Mar 15, 2013 at 10:18:56AM +0100, Florian Hars wrote: > Am 14.03.2013 18:53, schrieb Sebastien Mondet: > ># Unix.system "date";; > >Thu Mar 14 08:48:27 EST 2013 > >Exception: Unix.Unix_error (Unix.EINTR, "waitpid", ""). > ># > > That is just a bug in the unix library, Unix.system calls waitpid in > > caml.inria.fr/cgi-bin/viewvc.cgi/ocaml/version/4.00/otherlibs/unix/unix.ml?view=markup#l849 > > instead of waitpid_non_intr > http://caml.inria.fr/cgi-bin/viewvc.cgi/ocaml/version/4.00/otherlibs/unix/unix.ml?view=markup#l1002 > > I get the same behaviour without lwt: > > OCaml version 4.00.1 > > # #load "unix.cma";; > # Sys.set_signal 10 (Sys.Signal_handle > (fun _ -> print_endline "A perfect ten"));; > - : unit = () > # Unix.system "sleep 20";; > A perfect ten > Exception: Unix.Unix_error (Unix.EINTR, "waitpid", ""). > # > > All I had to do is send a signal 10 to the ocaml process > from another shell. [...] I don't get such errors with normal OCaml-distribution 3.11.1 and also not with opam's ocaml and 4.00.1. So it seems to be lwt-problem. Ciao, Oliver