All uses of p_siglist are protected by the proc lock now, so there's

no need to acquire Giant in sigpending() anymore.
This commit is contained in:
Tim J. Robbins 2003-02-15 08:42:02 +00:00
parent 1bdd8ae409
commit 48e8f774cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110923

View file

@ -695,7 +695,6 @@ struct sigpending_args {
/*
* MPSAFE
*/
/* ARGSUSED */
int
sigpending(td, uap)
struct thread *td;
@ -703,15 +702,11 @@ sigpending(td, uap)
{
struct proc *p = td->td_proc;
sigset_t siglist;
int error;
mtx_lock(&Giant);
PROC_LOCK(p);
siglist = p->p_siglist;
PROC_UNLOCK(p);
mtx_unlock(&Giant);
error = copyout(&siglist, uap->set, sizeof(sigset_t));
return(error);
return (copyout(&siglist, uap->set, sizeof(sigset_t)));
}
#ifdef COMPAT_43 /* XXX - COMPAT_FBSD3 */