Re: Signals and threads




Michael Schnell wrote:

See the thread "Communication between threads of same PIDs" in this
forum. Does that help ?

thanks for the response,
It does not solve the problem.

In the pthread_library clone call is used , In the man page of clone
its given that
if CLONE_SIGHAND is not defined, the signal handlers will not be shared
between threads.
I recompiled the pthread library with out CLONE_SIGHAND .

I linked the program with the new library , It has been ok in the
do_fork call in the pthread funciton, A new struct of task_struct->sig
is allocated. Also i have seen that the sigaction function call in the
thread modifies and install a new handler in this already allocated
task_struct->sig structure.
Inspite of all this the last sig handler function is getting called
when i send the signal to the first thread. Any clue???

thanks
thomas

.



Relevant Pages

  • Re: Signals and threads
    ... In the pthread_library clone call is used, In the man page of clone ... the signal handlers will not be shared ... Inspite of all this the last sig handler function is getting called ...
    (comp.os.linux.development.apps)
  • Re: Signals and threads
    ... In the pthread_library clone call is used, In the man page of clone ... the signal handlers will not be shared ... Inspite of all this the last sig handler function is getting called ...
    (comp.os.linux.development.apps)