Re: kernel threads and signals

From: Jiri Slaby
Date: Tue Sep 26 2006 - 17:50:58 EST


Janne Karhunen wrote:
Hi,

I have a kernel module foo that uses kernel thread bar. With
signal_pending() I can easily check whether or not thread has
pending signals, but what's the correct way to check for the
specific signal number(s)?

I am not pretty sure, but spinlock;dequeue_signal;spinunlock; should work.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/