diff options
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c index d7ba571..cb5d190 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -404,6 +404,9 @@ static int fuse_mount_fusermount(const char *mountpoint, struct mount_opts *mo, waitpid(pid, NULL, 0); /* bury zombie */ } + if (rv >= 0) + fcntl(rv, F_SETFD, FD_CLOEXEC); + return rv; } |