From c49573731c2b9286fc9773840da1a4fa8597dc70 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 5 Apr 2007 17:39:58 +0000 Subject: *** empty log message *** --- lib/mount.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/mount.c') diff --git a/lib/mount.c b/lib/mount.c index cdfd7d2..5232737 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -259,13 +259,13 @@ static int receive_fd(int fd) void fuse_kern_unmount(const char *mountpoint, int fd) { + int res; int pid; if (!mountpoint) return; if (fd != -1) { - int res; struct pollfd pfd; pfd.fd = fd; @@ -277,6 +277,10 @@ void fuse_kern_unmount(const char *mountpoint, int fd) return; } + res = umount2(mountpoint, 2); + if (res == 0) + return; + pid = fork(); if(pid == -1) return; -- cgit v1.2.3