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:
parent
be30a639cd
commit
a9f2f36f46
@ -41,8 +41,11 @@ message *m_ptr; /* pointer to request message */
|
|||||||
|
|
||||||
/* Set pending signal to be processed by the PM. */
|
/* Set pending signal to be processed by the PM. */
|
||||||
cause_sig(proc_nr, sig_nr);
|
cause_sig(proc_nr, sig_nr);
|
||||||
if (sig_nr == SIGKILL)
|
if (sig_nr == SIGKILL) {
|
||||||
clear_endpoint(proc_addr(proc_nr));
|
clear_endpoint(proc_addr(proc_nr));
|
||||||
|
if(m_ptr->SIG_ENDPT == SELF)
|
||||||
|
return EDONTREPLY;
|
||||||
|
}
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user