All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mauro Salvini <mauro.salvini@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_join() small issue on not-joinable task
Date: Sat, 23 Apr 2011 18:05:44 +0200	[thread overview]
Message-ID: <4DB2F8D8.2070505@domain.hid> (raw)
In-Reply-To: <537545.221302614089218.JavaMail.SYSTEM@pc-msalvini>

Mauro Salvini wrote:
> Hi to all,
> 
> I'm running Xenomai 2.5.5.2 IPipe 2.7-04 on kernel 2.6.35.7-x86.
> 
> I have a main real time task that creates a thread: this thread calls
> rt_task_shadow() to turns itself into real-time task I discovered
> this: if I exit from this task and then call rt_task_join() on it
> from main task, rt_task_join() returns 0 instead -EINVAL as expected
> (T_JOINABLE flag does not exist for rt_task_shadow() function). Is it
> correct a behavior?

Why would not it be correct? I mean, Linux threads are joinable by
default, so, it is normal that rt_task_join succeeds. Now, we can
implement a different behaviour, but for what reason?

-- 
                                                                Gilles.


  reply	other threads:[~2011-04-23 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <18922906.201302613837843.JavaMail.SYSTEM@pc-msalvini>
2011-04-12 13:14 ` [Xenomai-help] rt_task_join() small issue on not-joinable task Mauro Salvini
2011-04-23 16:05   ` Gilles Chanteperdrix [this message]
     [not found] <28969746.161303825604578.JavaMail.SYSTEM@pc-msalvini>
2011-04-26 13:47 ` Mauro Salvini
2011-04-26 18:04   ` Gilles Chanteperdrix

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=4DB2F8D8.2070505@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mauro.salvini@domain.hid \
    --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.