aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2013-06-20 11:43:02 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2013-07-01 10:06:37 +0200
commitddfd2d44a6eab79c722f4b5785efdbcccb9c4d35 (patch)
tree9d3b4d9ae8a687c97761b2200f448bf88ad2c53e /lib/fuse_i.h
parent44088bc7fbe7c9234c090756dbf10742b1a281b1 (diff)
downloadlibfuse-ddfd2d44a6eab79c722f4b5785efdbcccb9c4d35.tar.gz
libfuse: fix multiple close of device fd
- fuse_kern_unmount closes handle (e.g. 19) - a thread in my process opens a file - the OS assigns newly freed handle (i.e. 19) - fuse_kern_chan_destroy closes the same handle (i.e. 19) - a thread in my process opens another file - the OS assigns newly freed handle (i.e. 19) - * MAYHEM * Reported by Dan Greenfield
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 78f1467..fa37156 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -106,6 +106,8 @@ struct fuse_session *fuse_lowlevel_new_common(struct fuse_args *args,
size_t op_size, void *userdata);
void fuse_kern_unmount_compat22(const char *mountpoint);
+int fuse_chan_clearfd(struct fuse_chan *ch);
+
void fuse_kern_unmount(const char *mountpoint, int fd);
int fuse_kern_mount(const char *mountpoint, struct fuse_args *args);