From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [bug] accept() in non-blocking mode fails with EPERM instead of EAGAIN
Date: Thu, 01 Oct 2009 09:20:51 +0200 [thread overview]
Message-ID: <4AC45853.2040107@domain.hid> (raw)
In-Reply-To: <4AC4561B.5070004@domain.hid>
Jan Kiszka wrote:
> Matthieu Nottale wrote:
>> Hi,
>>
>> I believe I found a bug in the Xenomai Posix skin while trying to use
>> boost::asio: The accept() call in asychronous mode
>> fails with ENOPEM instead of EAGAIN. Other than that, the call 'works'
>> in the sense that calling it again after a connection is established
>> returns a new file descriptor.
>
> On what kind of file descriptor descriping what kind of socket are you
> calling accept()? So far I'm not aware of any RTDM driver providing the
> corresponding service - well, at least not a public one (our RT-TCP
> stack is yet to be released). Or is it intended to pass the call to
> plain Linux, switching the caller into secondary more?
There's a sample attached. Yes, it is a TCP stream. Howeve accept is
wrapped, so it may happen that EPERM is the result of the wrapping.
--
Gilles.
next prev parent reply other threads:[~2009-10-01 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-29 7:53 [Xenomai-core] [bug] accept() in non-blocking mode fails with EPERM instead of EAGAIN Matthieu Nottale
2009-10-01 7:11 ` Jan Kiszka
2009-10-01 7:20 ` Gilles Chanteperdrix [this message]
2009-10-01 7:41 ` Jan Kiszka
2009-10-01 8:09 ` Matthieu Nottale
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=4AC45853.2040107@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.