vm: remove stack handling for signals
. moved to the kernel as the handling was only reading it; the kernel may as well write it too
This commit is contained in:
@@ -701,7 +701,6 @@ int signo; /* signal to send to process (1 to _NSIG-1) */
|
||||
* Return TRUE if this succeeded, FALSE otherwise.
|
||||
*/
|
||||
struct sigmsg sigmsg;
|
||||
vir_bytes cur_sp;
|
||||
int r, sigflags, slot;
|
||||
|
||||
if (!(rmp->mp_flags & UNPAUSED))
|
||||
@@ -732,11 +731,6 @@ int signo; /* signal to send to process (1 to _NSIG-1) */
|
||||
sigdelset(&rmp->mp_sigpending, signo);
|
||||
sigdelset(&rmp->mp_ksigpending, signo);
|
||||
|
||||
if(vm_push_sig(rmp->mp_endpoint, &cur_sp) != OK)
|
||||
return(FALSE);
|
||||
|
||||
sigmsg.sm_stkptr = cur_sp;
|
||||
|
||||
/* Ask the kernel to deliver the signal */
|
||||
r = sys_sigsend(rmp->mp_endpoint, &sigmsg);
|
||||
/* sys_sigsend can fail legitimately with EFAULT if
|
||||
|
||||
Reference in New Issue
Block a user