diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-09-25 12:24:39 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-09-25 14:58:31 +0000 |
commit | d71e1a883c92b8b166eea59734850acd54048d72 (patch) | |
tree | 0271409504d23813f51496c15716ba813621f381 /sys/kern/vfs_vnops.c | |
parent | f766826fe3b82462c6397ec849dc2243f4bdfeee (diff) | |
download | src-d71e1a883c92b8b166eea59734850acd54048d72.tar.gz src-d71e1a883c92b8b166eea59734850acd54048d72.zip |
fifo: support flock
This evens it up with Linux.
Original patch by: Greg V <greg@unrelenting.technology>
Differential Revision: https://reviews.freebsd.org/D24255#565302
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index d4229160f11e..aeeeee3e3a1d 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1829,7 +1829,7 @@ vn_closefile(struct file *fp, struct thread *td) vp = fp->f_vnode; fp->f_ops = &badfileops; - ref = (fp->f_flag & FHASLOCK) != 0 && fp->f_type == DTYPE_VNODE; + ref = (fp->f_flag & FHASLOCK) != 0; error = vn_close1(vp, fp->f_flag, fp->f_cred, td, ref); |