From: Jeffrey Melville <jmelville@mitre.org>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai] Clarification on EINTR with wrapped select call.
Date: Thu, 28 Apr 2016 15:27:30 -0400 [thread overview]
Message-ID: <57226422.2010707@mitre.org> (raw)
Hi,
I wanted to clarify the expected behavior that would cause a wrapped
select() call to return EINTR when using the POSIX skin.
I'm running Xenomai 2.6.4 (actually 2.6 git rev 4f349cf0553, with a99426
cherry-picked) with kernel 3.14.17 on a Zynq and the POSIX skin.
We have a real-time thread (SCHED_FIFO, nonzero priority) that
frequently calls (wrapped) select() on a normal Linux UDP socket. We've
noticed that sometimes, when data is available on the socket, the call
to select will return -1 with errno EINTR. There is no other evidence in
the user application that a signal occurred. I suspect that it may be
related to SIGWINCH/SIGHARDEN but I don't know how this works in much
detail. I haven't been able to confirm this theory yet either. I see
that select does not have to respect SA_RESTART.
With that in mind:
1. Is it expected that a wrapped select() call returns EINTR during
normal mode transitions? It doesn't seem right to me.
2. If this isn't the expected behavior, what would you recommend as a
next debugging step? I suspect that handling every SIGWINCH will result
in a lot of noise.
Thanks,
Jeff
next reply other threads:[~2016-04-28 19:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-28 19:27 Jeffrey Melville [this message]
2016-04-29 19:54 ` [Xenomai] Clarification on EINTR with wrapped select call Gilles Chanteperdrix
2016-04-29 21:08 ` Jeffrey Melville
2016-04-29 21:29 ` Gilles Chanteperdrix
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=57226422.2010707@mitre.org \
--to=jmelville@mitre.org \
--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.