diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fuse-lib/mount.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/fuse-lib/mount.c b/contrib/fuse-lib/mount.c index 05d04b769e5..6801f9d7383 100644 --- a/contrib/fuse-lib/mount.c +++ b/contrib/fuse-lib/mount.c @@ -95,9 +95,10 @@ gf_fuse_unmount_daemon (const char *mountpoint, int fd) pid = fork (); switch (pid) { + case 0: + { char c = 0; sigset_t sigset; - case 0: close_fds_except (ump, 1); @@ -110,6 +111,7 @@ gf_fuse_unmount_daemon (const char *mountpoint, int fd) gf_fuse_unmount (mountpoint, fd); exit (0); + } case -1: close (fd); fd = -1; |