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 B25E97EE80 for ; Fri, 15 Mar 2013 11:11:54 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dhouse@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of dhouse@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AioBAAHzQlEmacjlmWdsb2JhbABDswuSBoFlHg4BAQEBAQgLCwcUKIIqAQEFJxkBASwLAQ8LCw0NISISAQUBChIGExKHcAMPAwmjRopyhDsBBYUrA4lfBo8VB4NAll2BH4ReiSMWKYQt X-IPAS-Result: AioBAAHzQlEmacjlmWdsb2JhbABDswuSBoFlHg4BAQEBAQgLCwcUKIIqAQEFJxkBASwLAQ8LCw0NISISAQUBChIGExKHcAMPAwmjRopyhDsBBYUrA4lfBo8VB4NAll2BH4ReiSMWKYQt X-IronPort-AV: E=Sophos;i="4.84,850,1355094000"; d="scan'208";a="7759461" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Mar 2013 11:11:53 +0100 Received: from [172.27.22.15] (helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1UGRc7-00023M-NH for caml-list@inria.fr; Fri, 15 Mar 2013 06:11:51 -0400 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UGRc7-0006Ta-MU for caml-list@inria.fr; Fri, 15 Mar 2013 06:11:51 -0400 Received: from mail-oa0-f71.google.com ([209.85.219.71]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1UGRc7-0003km-Jt for caml-list@inria.fr; Fri, 15 Mar 2013 06:11:51 -0400 Received: by mail-oa0-f71.google.com with SMTP id o6so17067664oag.2 for ; Fri, 15 Mar 2013 03:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=nVwxJW/LoKJXLMJexDZgW6FSVhmZ2H5BugsPVLKL3Mw=; b=x9yHf9NLpEgCjlA1jgk0gAbcY/35pW0Mq/2ayF0izaAPYRpzVYlmBe6wu5RnooWouO NKqMEL9JO9cQO/rRlzodQuUUQHKpo1RGUGGUMCnysbSpHIU2jO/CP5ddycqeqP0Y+8fj Spg21tsWLY4kD85h9Pn+Pv3cjmH1O7roCCzTo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=nVwxJW/LoKJXLMJexDZgW6FSVhmZ2H5BugsPVLKL3Mw=; b=IAvZ3Awy+Sy3LfKCLlDkwK/15QXnmhw97+kCJ2jf/u4mdFjx/8AkD48u8S/zFwEcMP pFpHVUENgs1+krdKJm0zELgm6JPjzD2f7SzEve2GdOjbfnXzd7ZbM4ul4SxHgTDk0Vqi Zzqb1ZXTeIrNP6anfqZQPSSGQKdnVWD4aOlg0ZKjT4v0HhovHF3rW8ac6o59zgWqQCz0 ce3Nf2LbLGN4dJQGkjBSpeQ1rxCwgBIttZBxOFsddFzmXjFsaoVF+8Y5BexygXnXdMJw V5OQ8cXnVO7RA/wHz9x9kX+VGgmjEOWhEK/69JX1GCFaV+Tqp7tD8s8elBSGu/Lwl4Rh 8P7A== X-Received: by 10.182.146.42 with SMTP id sz10mr2626757obb.83.1363342311354; Fri, 15 Mar 2013 03:11:51 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.146.42 with SMTP id sz10mr2626753obb.83.1363342311260; Fri, 15 Mar 2013 03:11:51 -0700 (PDT) Received: by 10.76.13.199 with HTTP; Fri, 15 Mar 2013 03:11:50 -0700 (PDT) In-Reply-To: <20130315100224.GC1837@siouxsie> References: <5142E780.7060806@hars.de> <20130315100224.GC1837@siouxsie> Date: Fri, 15 Mar 2013 10:11:50 +0000 Message-ID: From: David House To: oliver Cc: OCaml Mailing List , ocsigen@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkNKOjnJotu9ZxAX8b3i6e4JAqDH285FhHIAqILw7zLyC2/LkLX6NEqwyIkTjpznB4/Dbhd72rplfbto+eL3kyM+u/QjHT4acwo4OCpWDd9GIegxxWHk5TrC2iV2Oc0kVaU9Gt0seeHKgSzZ5Hlv1MVFsx6Mg== Subject: Re: [Caml-list] BUG in unix.ml (was: strange errors when linking lwt.unix) FWIW, Core (and thus async) wraps all of its [waitpid] calls in a loop that restarts on EINTR. On 15 March 2013 10:02, oliver wrote: > 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 > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs