Messages in this thread | | | Date | Tue, 26 Sep 2006 23:50:40 +0200 | From | Jiri Slaby <> | Subject | Re: kernel threads and signals |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |