1 /* The kernel call that is implemented in this file:
4 * The parameters for this kernel call are:
5 * m2_i1: SIG_ENDPT # process for which PM is done
12 /*===========================================================================*
14 *===========================================================================*/
15 PUBLIC
int do_endksig(struct proc
* caller
, message
* m_ptr
)
17 /* Finish up after a kernel type signal, caused by a SYS_KILL message or a
18 * call to cause_sig by a task. This is called by the PM after processing a
19 * signal it got with SYS_GETKSIG.
21 register struct proc
*rp
;
24 /* Get process pointer and verify that it had signals pending. If the
25 * process is already dead its flags will be reset.
27 if(!isokendpt(m_ptr
->SIG_ENDPT
, &proc_nr
))
30 rp
= proc_addr(proc_nr
);
31 if (!RTS_ISSET(rp
, RTS_SIG_PENDING
)) return(EINVAL
);
33 /* PM has finished one kernel signal. Perhaps process is ready now? */
34 if (!RTS_ISSET(rp
, RTS_SIGNALED
)) /* new signal arrived */
35 RTS_UNSET(rp
, RTS_SIG_PENDING
); /* remove pending flag */
39 #endif /* USE_ENDKSIG */