From: Mauro Salvini <mauro.salvini@domain.hid>
To: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Signal mask inheritance
Date: Fri, 11 Feb 2011 12:00:54 +0100 (CET) [thread overview]
Message-ID: <14109749.81297422048953.JavaMail.SYSTEM@pc-msalvini> (raw)
In-Reply-To: <21119302.61297421436968.JavaMail.SYSTEM@pc-msalvini>
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
I apologize for latter message, my client decides to automatically send it before completion...
I rewrite it here:
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:
#define RT_TASK_RESET(task) task.opaque=0 , task.opaque2=0
but it works only for kernel tasks (in include/native/task.h RT_TASK structure isn't the same for kernel/non kernel tasks).
I think that a struct initializer into library could be a next feature.
Thank you,regards.
[-- Attachment #2: Type: text/html, Size: 1417 bytes --]
next prev parent reply other threads:[~2011-02-11 11:00 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 ` [Xenomai-help] Signal mask inheritance Mauro Salvini
2011-02-11 11:00 ` Mauro Salvini [this message]
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=14109749.81297422048953.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.