All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Salvini <mauro.salvini@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Signal mask inheritance
Date: Fri, 11 Feb 2011 11:50:39 +0100 (CET)	[thread overview]
Message-ID: <21119302.61297421436968.JavaMail.SYSTEM@pc-msalvini> (raw)
In-Reply-To: <8218410.41297420786765.JavaMail.SYSTEM@pc-msalvini>

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Hi to all, 

I would build an application where only one of real-time tasks executes a custom signal handler to respond to a set of signals (ex SIGINT, SIGTERM). 
Xenomai tasks are also POSIX threads, so I think that at creation they inherits all signal masks and handlers from parent thread. 
So, what I can do in my app is reset signal mask to block all signals when new task starts. 
Can I block all signals or there are some signals (eg SIGWINCH) needed by Xenomai for inter-task communication? 

By the way, is there a method in Xenomai to initialize all RT_TASK structure fields without use field names (eg PTHREAD_MUTEX_INITIALIZER )? 
I use this simple define: 




[-- Attachment #2: Type: text/html, Size: 884 bytes --]

       reply	other threads:[~2011-02-11 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8218410.41297420786765.JavaMail.SYSTEM@pc-msalvini>
2011-02-11 10:50 ` Mauro Salvini [this message]
2011-02-11 11:00   ` [Xenomai-help] Signal mask inheritance Mauro Salvini
2011-02-11 11: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=21119302.61297421436968.JavaMail.SYSTEM@pc-msalvini \
    --to=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.