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.