Another signal handling bug?

David A. Gatwood dgatwood at deepspace.mklinux.org
Fri Aug 18 13:28:48 EST 2000


On Thu, 17 Aug 2000, Kevin B. Hendricks wrote:

> Hi David,
>
> If you are grabbing mutexes in a signal handler, you are obviously in a
> multithreaded environment.  When you set the sa_flags to zero you may prevent
> that thread from recursing in the signal handler but the signal could be delived
> to another thread which in fact has its own signal mask and things but shares
> sigaction strucutres and it could be entering your signal handler.
>
> Just a thought, but something to possibly check out.

Already did.  I thought I said that in the original message, but that's
probably been lost for some time in everyone's inbox.  ;-)

Anyway, the program blocks SIGALRM before it spawns threads, and only
unmasks it in the desired thread.


David

---------------------------------------------------------------------
A brief Haiku:

Microsoft is bad.
It seems secure at first glance.
Then you read your mail.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list