Re: Another signal handling bug?
flat view
From: David A. Gatwood <hidden>
Date: 2000-08-18 03:28:48
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/