From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 11 Feb 2011 11:50:39 +0100 (CET) From: Mauro Salvini Message-ID: <21119302.61297421436968.JavaMail.SYSTEM@pc-msalvini> In-Reply-To: <8218410.41297420786765.JavaMail.SYSTEM@pc-msalvini> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3_7408107.1297421436968" Subject: [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_3_7408107.1297421436968 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: ------=_Part_3_7408107.1297421436968 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
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:



------=_Part_3_7408107.1297421436968--