diff options
author | 2006-03-01 09:40:35 +0000 | |
---|---|---|
committer | 2006-03-01 09:40:35 +0000 | |
commit | ee588c01dca3991807aea456a66246ff8ad0c332 (patch) | |
tree | 495e5e37dc07b9049df2650a5866eaf80d7d145d /lib/helper.c | |
parent | aa8258e9fb887d45c0a5754f158015e035ce37bc (diff) |
pass device file descriptor to fuse_unmount
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/helper.c b/lib/helper.c index f937366..a5935de 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -225,7 +225,7 @@ static struct fuse *fuse_setup_common(int argc, char *argv[], err_destroy: fuse_destroy(fuse); err_unmount: - fuse_unmount(*mountpoint); + fuse_unmount(*mountpoint, *fd); err_free: free(*mountpoint); return NULL; @@ -242,10 +242,8 @@ struct fuse *fuse_setup(int argc, char *argv[], void fuse_teardown(struct fuse *fuse, int fd, char *mountpoint) { - (void) fd; - fuse_remove_signal_handlers(fuse_get_session(fuse)); - fuse_unmount(mountpoint); + fuse_unmount(mountpoint, fd); fuse_destroy(fuse); free(mountpoint); } |