From: Ben Gras Date: Thu, 8 Feb 2007 12:59:29 +0000 (+0000) Subject: Sanity check in clock - process is supposed to be runnable when it's X-Git-Tag: v3.1.3~94 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=3c907e6ef1024cd3f4e807ca8b43599fc52ffe33;p=minix.git Sanity check in clock - process is supposed to be runnable when it's interrupted. --- diff --git a/kernel/clock.c b/kernel/clock.c index 838f8959f..82ef34905 100755 --- a/kernel/clock.c +++ b/kernel/clock.c @@ -109,6 +109,9 @@ message *m_ptr; /* pointer to request message */ if(prev_ptr->p_rts_flags == 0) { /* if it was runnable .. */ lock_dequeue(prev_ptr); /* take it off the queues */ lock_enqueue(prev_ptr); /* and reinsert it again */ + } else { + kprintf("CLOCK: %d not runnable; flags: %x\n", + prev_ptr->p_endpoint, prev_ptr->p_rts_flags); } }