[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nptl] [offtopic] NPTL question
Sorry to diverge from the main purpose of this mailing list. I have a
question, which basically could question my understanding of POSIX
threads in general. If this is the wrong mailing list would really
appreciate if you could direct me to a better list where I could post my
question. If someone is willing to reply to my query would really
appreciate if you could cc the reply to me as I am not subscribed to
this mailing list.
Question is as follows:
I have signal say SIGRTMIN which I have blocked in all the threads that
I create. I do this by using sigprocmask before I fire my threads. I
have a thread which handles SIGRTMIN without explicitly using a
sigaction. Since I blocked the signal SIGRTMIN, I assume that it would
be in the pending queue for delivery. I use sigwaitinfo to dequeue the
signal in the appropriate thread by looping infinitely. I find that I am
unable to dequeue the signal inside my thread, but I am able to dequeue
the same signal in the main process that fires off all the threads. Is
this the behavior of POSIX threads or my understanding is correct and
this is a bug in the implementation of NPTL or is a bug in the Linux
kernel which causes this to happen.
Thanks,
Bharath
---
Bharath Ramesh <bramesh@vt.edu> http://csgrad.cs.vt.edu/~bramesh
Liste de diffusion nptl
Pour se désinscrire : mailto:nptl_request@bullopensource.org?subject=unsubscribe