All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] EINTR in notifier.c (mercury)
@ 2014-03-31 10:34 Matthias Schneider
  2014-03-31 11:19 ` Philippe Gerum
  2014-03-31 11:27 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 16+ messages in thread
From: Matthias Schneider @ 2014-03-31 10:34 UTC (permalink / raw)
  To: xenomai

Hi all,


still working on thread suspension in mercury, I noticed that some

threadobj_suspend() and threadobj_resume() calls seemed not to have the desired

effect. Analyzing the issue, I found out that sometimes the read operations on 
the pipe in notifier_wait() seem to return with EINTR, especially in 
heavily loaded systems. Restarting the read system call in that case made 
thread suspension a lot more reliable in my case.

I have attached a patch adding loops to deal with the EINTR situation in all

read and write operations of notifier.c. 


Regards,
Matthias 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notifier.c.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140331/afc8f5a6/attachment.bin>

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

end of thread, other threads:[~2014-04-11 17:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-31 10:34 [Xenomai] EINTR in notifier.c (mercury) Matthias Schneider
2014-03-31 11:19 ` Philippe Gerum
2014-03-31 11:27 ` Gilles Chanteperdrix
2014-03-31 13:18   ` Philippe Gerum
2014-03-31 17:43     ` Matthias Schneider
2014-03-31 17:50     ` Gilles Chanteperdrix
2014-04-06 11:11       ` Matthias Schneider
2014-04-06 15:04         ` Philippe Gerum
2014-04-06 15:09           ` Gilles Chanteperdrix
2014-04-07  9:01             ` Philippe Gerum
2014-04-07 16:49           ` Matthias Schneider
2014-04-08  7:22             ` Philippe Gerum
2014-04-11 14:59             ` Philippe Gerum
2014-04-11 15:07               ` Philippe Gerum
2014-04-11 16:44                 ` Matthias Schneider
2014-04-11 17:02                   ` Philippe Gerum

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.