summaryrefslogtreecommitdiffstats
path: root/sys/netncp
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_ncp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netncp/ncp_ncp.c b/sys/netncp/ncp_ncp.c
index 613c2d0..911dd82 100644
--- a/sys/netncp/ncp_ncp.c
+++ b/sys/netncp/ncp_ncp.c
@@ -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;
}
OpenPOWER on IntegriCloud