From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p9QBKsCj016713 for ; Wed, 26 Oct 2011 13:20:54 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8GAO/rp05ZELGagWdsb2JhbABCqCmBMgEBFiYlgW4BAQU6PxALDgouFEmIFbRhiAlhBJQKkWA X-IronPort-AV: E=Sophos;i="4.69,408,1315173600"; d="scan'208";a="126073426" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail1-smtp-roc.national.inria.fr with SMTP; 26 Oct 2011 13:20:49 +0200 Received: (qmail 15985 invoked by uid 10000); 26 Oct 2011 11:20:48 -0000 Date: Wed, 26 Oct 2011 12:20:48 +0100 From: Anil Madhavapeddy To: Mark Shinwell Cc: Yaron Minsky , caml-list@inria.fr, Stephen Weeks Message-ID: <20111026112048.GA4662@dark.recoil.org> References: <20111026080716.GA27187@solaria.dimino.org> <20111026110643.GU18802@janestreet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111026110643.GU18802@janestreet.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] [ANN] Async, a monadic concurrency library On Wed, Oct 26, 2011 at 12:06:43PM +0100, Mark Shinwell wrote: > On Wed, Oct 26, 2011 at 07:03:43AM -0400, Yaron Minsky wrote: > > I'll leave Stephen to answer that one. I'm just the front-man here. > > Stephen's the one who did all the actual work on Async... > > Actually, I think I'm probably responsible for this one. I believe the > problem was a kernel bug/feature which caused an internal error code to > be exposed to userspace instead of EINTR. Have you ever seen this outside of using ptrace/strace? If it actually leaks to userspace when not used on inside those, that would break a lot of other applications. Anyhow, directly checking the number is bad for portability reasons as the ERESTARTNOHAND is a Linux-ism. I'm taking a shot at porting Core/Async to OpenBSD at the moment, so will patch out that check in our local changes). -- Anil Madhavapeddy http://anil.recoil.org