caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Brian Hurt <bhurt@spnz.org>
To: Christophe TROESTLER <Christophe.Troestler@umh.ac.be>
Cc: jtbryant@valdosta.edu, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Mysterious bug
Date: Sun, 11 Dec 2005 08:33:31 -0600 (CST)	[thread overview]
Message-ID: <Pine.LNX.4.63.0512110831560.14589@localhost.localdomain> (raw)
In-Reply-To: <20051211.121613.45234151.Christophe.Troestler@umh.ac.be>



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


  reply	other threads:[~2005-12-11 14:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-11  3:30 Jonathan Bryant
2005-12-11  4:32 ` [Caml-list] " Brian Hurt
2005-12-11 11:16   ` Christophe TROESTLER
2005-12-11 14:33     ` Brian Hurt [this message]
2005-12-11 15:15       ` Christophe TROESTLER
2005-12-11 11:11 ` Olivier Andrieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0512110831560.14589@localhost.localdomain \
    --to=bhurt@spnz.org \
    --cc=Christophe.Troestler@umh.ac.be \
    --cc=caml-list@yquem.inria.fr \
    --cc=jtbryant@valdosta.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).