summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-10-15 18:10:13 +0000
committerjhb <jhb@FreeBSD.org>2002-10-15 18:10:13 +0000
commit28b39014f922f14aa60f52a085ff3b255a3726cb (patch)
treeea475f798f24a288af42757c7d1c5b2e26ef4f4f /sys
parent065bd6f989bcb742aa4c525af51fc15ce66d1cef (diff)
downloadFreeBSD-src-28b39014f922f14aa60f52a085ff3b255a3726cb.zip
FreeBSD-src-28b39014f922f14aa60f52a085ff3b255a3726cb.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_descrip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index ce7ae77..774bbf8 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -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;
OpenPOWER on IntegriCloud