mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Lock access to the signal queue, and related structures, with PROC_LOCK.
Submitted by: jhb
This commit is contained in:
parent
dc183990ca
commit
f4430f22b8
1 changed files with 5 additions and 1 deletions
|
|
@ -1240,11 +1240,15 @@ nfs_sigintr(struct nfsmount *nmp, struct nfsreq *rep, struct thread *td)
|
|||
return (0);
|
||||
|
||||
p = td->td_proc;
|
||||
PROC_LOCK(p);
|
||||
ksiginfo_to_sigset_t(p, &tmpset);
|
||||
SIGSETNAND(tmpset, p->p_sigmask);
|
||||
SIGSETNAND(tmpset, p->p_sigignore);
|
||||
if (signal_queued(p, 0) && NFSINT_SIGMASK(tmpset))
|
||||
if (signal_queued(p, 0) && NFSINT_SIGMASK(tmpset)) {
|
||||
PROC_UNLOCK(p);
|
||||
return (EINTR);
|
||||
}
|
||||
PROC_UNLOCK(p);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue