fix _NSIG usage
This commit is contained in:
@@ -336,7 +336,7 @@ PUBLIC void send_sig(int proc_nr, int sig_nr)
|
||||
*===========================================================================*/
|
||||
PUBLIC void cause_sig(proc_nr, sig_nr)
|
||||
int proc_nr; /* process to be signalled */
|
||||
int sig_nr; /* signal to be sent, 1 to _NSIG */
|
||||
int sig_nr; /* signal to be sent */
|
||||
{
|
||||
/* A system process wants to send a signal to a process. Examples are:
|
||||
* - HARDWARE wanting to cause a SIGSEGV after a CPU exception
|
||||
|
||||
@@ -32,7 +32,7 @@ message *m_ptr; /* pointer to request message */
|
||||
proc_nr_e= m_ptr->SIG_ENDPT;
|
||||
|
||||
if (!isokendpt(proc_nr_e, &proc_nr)) return(EINVAL);
|
||||
if (sig_nr > _NSIG) return(EINVAL);
|
||||
if (sig_nr >= _NSIG) return(EINVAL);
|
||||
if (iskerneln(proc_nr)) return(EPERM);
|
||||
|
||||
/* Set pending signal to be processed by the PM. */
|
||||
|
||||
Reference in New Issue
Block a user