From: "Steub, Peter" <Peter.Steub@baumueller.com>
To: "xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: evl_demote_thread() leaves dev file of the tread
Date: Thu, 5 Feb 2026 08:41:14 +0000 [thread overview]
Message-ID: <09cd2de3c2514bfb8d80ebf969a8eaf3@baumueller.com> (raw)
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
next reply other threads:[~2026-02-05 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-05 8:41 Steub, Peter [this message]
2026-02-05 17:47 ` evl_demote_thread() leaves dev file of the tread Philippe Gerum
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=09cd2de3c2514bfb8d80ebf969a8eaf3@baumueller.com \
--to=peter.steub@baumueller.com \
--cc=xenomai@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox