diff options
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |