All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Xenomai <xenomai@xenomai.org>
Subject: [Xenomai] Resuming nanosleep & Co. after ignored signals
Date: Tue, 10 May 2016 17:57:05 +0200	[thread overview]
Message-ID: <573204D1.4060202@siemens.com> (raw)

Hi,

originally, this effect was only reported for debugged applications, but
I think it affects more:

clock_nanosleep (as well as nanosleep and sleep) should return -EINTR if
they were interrupted by signal while sleeping. OK. But what if that
signal was SIGSTOP, maybe even related to ptrace? Right now the function
just bails out, and applications behave differently from native Linux.
There we resume the sleep transparently if the signal is not delivered
to some handler (or actually terminates the process).

How could we model this properly with Xenomai? And could there be more
services affected than clock_nanosleep?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux


             reply	other threads:[~2016-05-10 15:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 15:57 Jan Kiszka [this message]
2016-05-10 16:08 ` [Xenomai] Resuming nanosleep & Co. after ignored signals Gilles Chanteperdrix
2016-05-10 16:21   ` Jan Kiszka
2016-05-11  6:05     ` Gilles Chanteperdrix
2016-05-11  7:17       ` Philippe Gerum
2016-05-11  7:25         ` Jan Kiszka
2016-05-12 20:07           ` Jan Kiszka

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=573204D1.4060202@siemens.com \
    --to=jan.kiszka@siemens.com \
    --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.