diff options
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); } |