All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Resuming nanosleep & Co. after ignored signals
@ 2016-05-10 15:57 Jan Kiszka
  2016-05-10 16:08 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2016-05-10 15:57 UTC (permalink / raw)
  To: Xenomai

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-12 20:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-10 15:57 [Xenomai] Resuming nanosleep & Co. after ignored signals Jan Kiszka
2016-05-10 16:08 ` 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

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.