lkml.org 
[lkml]   [1999]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: process waken up by syslogd and klogd
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.128 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site