Re: process waken up by syslogd and klogd

Arjan van de Ven (adve@oce.nl)
Wed, 6 Oct 1999 08:30:51 +0200 (CEST)


a> However, I found that the process which is sleeping in the request_fn is often
a> waken up by syslogd and klogd (even though nothing is printed in my driver).
a> If I add a "goto" statement to make it sleep again, it will be waken up
a> continuously, also by these two daemons. In this way, the process which
a> performs the network communication will have low chance to run.

Could you check if something sent you a signal?

if (signal_pending(current))
printk("Ring Ring\n");

would do the trick.

Kernel-threads (and general processes?) get woken up when a signal is delivered, and will
not go to sleep (for long anyway) until the signal is cleared.

Greetings,
Arjan van de Ven

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/