From a6c7eab4ccdfc0b71902ef36fd2ba7634f77a0ec Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Mon, 11 Sep 2017 11:19:06 +0100 Subject: 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. --- lib/mount_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3