Re: Signals and threads



Hello Thomas,

I have a problem using sigaction function in pthread library.
I have 2 thread each one registering

The first question is: what are you trying to achieve? Do you want to
have one signal handler per thread? Why Do you need this functionality?


You should know that a signal handler is a process specific property,
i.e. is shared among all threads (but each thread has its own signal
mask). So there's no way to achieve that functionality using
Pthreads/SUS.

Now, if you could explain what you want to achieve in more extend, we
could perhaps help you further.

Cheers,
Loic.

.