From: Philip Homburg Date: Wed, 8 Mar 2006 12:06:33 +0000 (+0000) Subject: Added some disabled debug code. X-Git-Tag: v3.1.2a~287 X-Git-Url: http://zhaoyanbai.com/repos/icons/valid-xhtml10.png?a=commitdiff_plain;h=167ea0faa557a8e0a0ea0db4e1724083abe0ea91;p=minix.git Added some disabled debug code. --- diff --git a/kernel/proc.c b/kernel/proc.c index 98faab837..fce4d486b 100755 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -107,6 +107,14 @@ message *m_ptr; /* pointer to message in the caller's space */ int result; /* the system call's result */ int src_dst; vir_clicks vlo, vhi; /* virtual clicks containing message to send */ + +#if 0 + if (caller_ptr->p_rts_flags & SLOT_FREE) + { + kprintf("called by the dead?!?\n"); + return EINVAL; + } +@endif /* Require a valid source and/ or destination process, unless echoing. */ if (src_dst_e != ANY && function != ECHO) { @@ -375,6 +383,14 @@ unsigned flags; /* system call flags */ xpp = &caller_ptr->p_caller_q; while (*xpp != NIL_PROC) { if (src_e == ANY || src_p == proc_nr(*xpp)) { +#if 0 + if ((*xpp)->p_rts_flags & SLOT_FREE) + { + kprintf("listening to the dead?!?\n"); + return EINVAL; + } +#endif + /* Found acceptable message. Copy it and update status. */ CopyMess((*xpp)->p_nr, *xpp, (*xpp)->p_messbuf, caller_ptr, m_ptr); if (((*xpp)->p_rts_flags &= ~SENDING) == 0) enqueue(*xpp);