Signals and threads
- From: "shibu-kundara" <thomasece@xxxxxxxxx>
- Date: 24 Nov 2006 02:19:47 -0800
Hi
I have a problem using sigaction function in pthread library.
I have 2 thread each one registering
in threadA
act1.sa_handler=func1;
if(sigaction(SIGUSR1,&act1,NULL)) printf("\nSigaction failed! in th1
!!\n");
in threadB
act1.sa_handler=func2;
if(sigaction(SIGUSR1,&act2,NULL)) printf("\nSigaction failed! in th2
!!\n");
but when i send signal SIGUSR1 to threadA , threadA receives the
signal
but the handler func2 is getting called,
Please let me know is there any way to solve this problem?
thanks in advance
thomas
.
- Follow-Ups:
- Re: Signals and threads
- From: loic-dev
- Re: Signals and threads
- Prev by Date: Re: Looking for a extensible shell for debug purpose
- Next by Date: Re: Looking for a extensible shell for debug purpose
- Previous by thread: C++: conditional static data member possible?
- Next by thread: Re: Signals and threads
- Index(es):
Relevant Pages
|