From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 11 Feb 2011 12:00:54 +0100 (CET) From: Mauro Salvini Message-ID: <14109749.81297422048953.JavaMail.SYSTEM@pc-msalvini> In-Reply-To: <21119302.61297421436968.JavaMail.SYSTEM@pc-msalvini> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4_24846731.1297422048953" Subject: Re: [Xenomai-help] Signal mask inheritance List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org ------=_Part_4_24846731.1297422048953 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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. ------=_Part_4_24846731.1297422048953 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'= >
I apologize for latter message,= my client decides to automatically send it before completion...

I r= ewrite 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 thr= eads, so I think that at creation they inherits all signal masks and handle= rs 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 t= here are some signals (eg SIGWINCH) needed by Xenomai for inter-task commun= ication?

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

#define RT_TASK_RE= SET(task) task.opaque=3D0 , task.opaque2=3D0

but it works only for k= ernel 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.
<= /html> ------=_Part_4_24846731.1297422048953--