mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
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:
parent
19521b0699
commit
7fd1f2b8bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105161
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue