Lock proc while accessing p_siglist p_sigmask and p_sigignore.

Not tested because netncp does not compile.
This commit is contained in:
Tim J. Robbins 2003-02-14 09:16:43 +00:00
parent fbbad44413
commit eabe23f352

View File

@ -80,11 +80,15 @@ ncp_chkintr(struct ncp_conn *conn, struct proc *p)
if (p == NULL)
return 0;
PROC_LOCK(p);
tmpset = p->p_siglist;
SIGSETNAND(tmpset, p->p_sigmask);
SIGSETNAND(tmpset, p->p_sigignore);
if (SIGNOTEMPTY(p->p_siglist) && NCP_SIGMASK(tmpset))
if (SIGNOTEMPTY(p->p_siglist) && NCP_SIGMASK(tmpset)) {
PROC_UNLOCK(p);
return EINTR;
}
PROC_UNLOCK(p);
return 0;
}