Browse thread
Mysterious bug
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-12-11 (14:26) |
From: | Brian Hurt <bhurt@s...> |
Subject: | Re: [Caml-list] Mysterious bug |
On Sun, 11 Dec 2005, Christophe TROESTLER wrote: > On Sat, 10 Dec 2005, Brian Hurt <bhurt@spnz.org> wrote: >> >> On Sat, 10 Dec 2005, Jonathan Bryant wrote: >> >>> 2. Unix.accept raises an Unix.Unix_error(12, "accept", "") at some >>> random time (sometimes, I believe, after all of the connections have >>> been made, but I feel very wrong in thinking this) >> >> Not sure if this helps, but errno 12 is ENOMEM, which means the kernel is >> running out of memory. I'm not sure what would cause it, however. > > # (Obj.magic 12 : Unix.error);; > - : Unix.error = Unix.EINVAL > > man accept: > > EINVAL > Socket is not listening for connections. A) This makes more sense than ENOMEM. B) Does Ocaml remap the errnos? Because I got ENOMEM by looking at /usr/include/asm-generic/errno-base.h, from which I get: #define ENOMEM 12 /* Out of memory */ Brian