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 -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
