public inbox for xenomai@lists.linux.dev
 help / color / mirror / Atom feed
* evl_demote_thread() leaves dev file of the tread
@ 2026-02-05  8:41 Steub, Peter
  2026-02-05 17:47 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Steub, Peter @ 2026-02-05  8:41 UTC (permalink / raw)
  To: xenomai@lists.linux.dev

In my application I have a fallback solution to kill a oob thread, if the regular way of closing the thread fails and a timeout runs out. 
I do this by calling evl_demote_thread() and pthread_cancel() afterwards. This seems to work, evl_demote_thread() gives me a 0 returnvalue, and the thread is gone after pthread_cancel(). 

When I create a new thread, and try to put it in oob mode with the same name using evl_attach_self(), I get EEXIST (-17) from evl_attach_self().
Am I doing it wrong? Is there another way to do a detach from outside the thread? Do I need to do something more then evl_demote_thread() to really get rid of the thread?

I am on evl 0.52 right now.

Thank you.

Mit freundlichen Grüßen / kind regards

i. A. Peter Steub



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

end of thread, other threads:[~2026-02-05 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  8:41 evl_demote_thread() leaves dev file of the tread Steub, Peter
2026-02-05 17:47 ` Philippe Gerum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox