If a process does sys_kill on SELF (such as in panic() of servers and drivers

if a PM exit fails, until they are compiled with the new panic() function that
is), don't reply to it as the endpoint has been cleared.
This commit is contained in:
Ben Gras 2007-02-23 12:55:29 +00:00
parent be30a639cd
commit a9f2f36f46

View File

@ -41,8 +41,11 @@ message *m_ptr; /* pointer to request message */
/* Set pending signal to be processed by the PM. */
cause_sig(proc_nr, sig_nr);
if (sig_nr == SIGKILL)
if (sig_nr == SIGKILL) {
clear_endpoint(proc_addr(proc_nr));
if(m_ptr->SIG_ENDPT == SELF)
return EDONTREPLY;
}
return(OK);
}