diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-09-11 11:19:06 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-09-11 11:19:06 +0100 |
commit | a6c7eab4ccdfc0b71902ef36fd2ba7634f77a0ec (patch) | |
tree | 6bc858613baa9c9ed1f5acee065412c1cafc3dda | |
parent | 21b55a05a158b1c225ba312529bc068cadd5431d (diff) | |
download | libfuse-a6c7eab4ccdfc0b71902ef36fd2ba7634f77a0ec.tar.gz |
fuse_kern_unmount(): close fd before calling umount
This is what the Linux version does, and it fixes a
timeout under FreeBSD when the kernel sends a FUSE_DESTROY
request that is never answered.
-rw-r--r-- | lib/mount_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index aafde77..94a11f7 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -126,8 +126,8 @@ static int fuse_mount_opt_proc(void *data, const char *arg, int key, void fuse_kern_unmount(const char *mountpoint, int fd) { - unmount(mountpoint, MNT_FORCE); close(fd); + unmount(mountpoint, MNT_FORCE); } /* Check if kernel is doing init in background */ |