Re: Signals and threads
- From: "Nils O. Selåsdal" <NOS@xxxxxxx>
- Date: Fri, 24 Nov 2006 13:14:22 +0100
shibu-kundara wrote:
Hi
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???
You're messing with a system library - don't do that unless you
know exactly what you're doing. Other parts of the library might (and does) rely on a particular behavior.
.
- Follow-Ups:
- Re: Signals and threads
- From: shibu-kundara
- Re: Signals and threads
- References:
- Signals and threads
- From: shibu-kundara
- Re: Signals and threads
- From: loic-dev
- Re: Signals and threads
- From: shibu-kundara
- Signals and threads
- Prev by Date: Re: Looking for a extensible shell for debug purpose
- Next by Date: Re: Signals and threads
- Previous by thread: Re: Signals and threads
- Next by thread: Re: Signals and threads
- Index(es):
Relevant Pages
|