1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Don't hold the proc lock while performing sigset conversions on local

variables.
This commit is contained in:
John Baldwin 2003-04-17 22:07:56 +00:00
parent 5edadff94d
commit 9d8643eca6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113615
2 changed files with 2 additions and 2 deletions

View File

@ -396,8 +396,8 @@ linux_sigpending(struct thread *td, struct linux_sigpending_args *args)
bset = p->p_siglist;
SIGSETOR(bset, td->td_siglist);
SIGSETAND(bset, td->td_sigmask);
bsd_to_linux_sigset(&bset, &lset);
PROC_UNLOCK(p);
bsd_to_linux_sigset(&bset, &lset);
mask = lset.__bits[0];
return (copyout(&mask, args->mask, sizeof(mask)));
}

View File

@ -904,8 +904,8 @@ osigpending(td, uap)
PROC_LOCK(p);
siglist = p->p_siglist;
SIGSETOR(siglist, td->td_siglist);
SIG2OSIG(siglist, td->td_retval[0]);
PROC_UNLOCK(p);
SIG2OSIG(siglist, td->td_retval[0]);
return (0);
}
#endif /* COMPAT_43 */