Grab the process lock around psignal().

Noticed by:	tanimura
This commit is contained in:
John Baldwin 2001-07-18 19:17:36 +00:00
parent 344d118fd4
commit 7063595315
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79872

View file

@ -273,7 +273,9 @@ smbfs_writevnode(struct vnode *vp, struct uio *uiop,
if (uiop->uio_resid == 0)
return 0;
if (p && uiop->uio_offset + uiop->uio_resid > p->p_rlimit[RLIMIT_FSIZE].rlim_cur) {
PROC_LOCK(p);
psignal(p, SIGXFSZ);
PROC_UNLOCK(p);
return EFBIG;
}
smb_makescred(&scred, p, cred);