Argh. Put back setting of P_ADVLOCK for the F_WRLCK case that was

accidentally lost in the previous revision.

Submitted by:	bde
Pointy hat to:	jhb
This commit is contained in:
John Baldwin 2002-10-15 18:10:13 +00:00
parent 19521b0699
commit 7fd1f2b8bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105161

View file

@ -387,6 +387,9 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
error = EBADF;
break;
}
PROC_LOCK(p);
p->p_flag |= P_ADVLOCK;
PROC_UNLOCK(p);
error = VOP_ADVLOCK(vp, (caddr_t)p->p_leader, F_SETLK, flp,
flg);
break;