From: Philippe Gerum <rpm@xenomai.org>
To: Frederik Bayart <frederik_bayart@yahoo.co.uk>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] xenomai-3.0-rc5 : binding named semaphores from external process
Date: Thu, 30 Jul 2015 17:58:15 +0200 [thread overview]
Message-ID: <55BA4997.6040207@xenomai.org> (raw)
In-Reply-To: <1152732986.5695318.1438266535029.JavaMail.yahoo@mail.yahoo.com>
On 07/30/2015 04:28 PM, Frederik Bayart wrote:
> I found already that 'select' on socket(PF_UNIX, SOCK_STREAM, 0) causes Interrupted system call (errno 4).
> If I replace 'select' with '__real_select' the problem seems to be solved, and the select timeout works.
> But the select doesn't seem to react on connect. I'm looking at the problem.
>
It all depends on the flags passed to xeno-config (*): if --posix or
--rtdm is given (alone, or along with --native, --alchemy or whatever
other non-POSIX API), then POSIX calls will be wrapped to the
Xenomai/cobalt counterparts, in which case select() would call the
Xenomai implementation for instance.
If neither --posix nor --rtdm are given, then no wrapping takes place,
and select() will call the regular linux implementation.
If __real_select() works successfully in your app and differently than
select(), then wrapping is in effect, and this means that your file
descriptors are plain regular ones, obtained by standard linux syscalls
(__real_open, __real_socket), not by Xenomai syscalls (open, socket).
You may want to check for a mismatch due to POSIX symbol wrapping in
your app.
(*)
http://www.xenomai.org/documentation/xenomai-3/html/man1/xeno-config/index.html
--
Philippe.
next prev parent reply other threads:[~2015-07-30 15:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-13 13:37 [Xenomai] xenomai-3.0-rc5 : binding named semaphores from external process Frederik Bayart
2015-07-14 9:53 ` Philippe Gerum
2015-07-15 12:45 ` Frederik Bayart
2015-07-16 15:35 ` Philippe Gerum
2015-07-28 15:19 ` Frederik Bayart
2015-07-29 10:12 ` Philippe Gerum
2015-07-29 11:48 ` Frederik Bayart
2015-07-29 12:20 ` Philippe Gerum
2015-07-29 12:28 ` Philippe Gerum
2015-07-29 12:48 ` Philippe Gerum
2015-07-29 12:56 ` Philippe Gerum
2015-07-29 15:14 ` Frederik Bayart
2015-07-29 18:27 ` Philippe Gerum
2015-07-29 18:42 ` Philippe Gerum
2015-07-30 14:28 ` Frederik Bayart
2015-07-30 15:08 ` Frederik Bayart
2015-07-30 16:10 ` Philippe Gerum
2015-07-31 17:54 ` Frederik Bayart
2015-08-01 7:59 ` Philippe Gerum
2015-08-01 8:43 ` Philippe Gerum
2015-08-03 9:59 ` Frederik Bayart
2015-07-30 15:58 ` Philippe Gerum [this message]
2015-07-30 16:36 ` Philippe Gerum
2015-07-31 16:04 ` Frederik Bayart
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=55BA4997.6040207@xenomai.org \
--to=rpm@xenomai.org \
--cc=frederik_bayart@yahoo.co.uk \
--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.