aboutsummaryrefslogtreecommitdiff
path: root/lib/mount.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2007-04-05 17:39:58 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2007-04-05 17:39:58 +0000
commitc49573731c2b9286fc9773840da1a4fa8597dc70 (patch)
treec4a0df7d2fdcd9ac0267a7fd27404fd3f733141d /lib/mount.c
parent3cba1d430930b71202bf8000d2052609ec92ab5d (diff)
*** empty log message ***
Diffstat (limited to 'lib/mount.c')
-rw-r--r--lib/mount.c6
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;