diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2013-06-20 11:43:02 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-06-20 11:43:02 +0200 |
commit | af57c73304b8a23c6ca0e1aebf4ce49071ac784a (patch) | |
tree | 9ff233b9701a15ee9050d7b7237e9c4bc8164d0f /lib/fuse_i.h | |
parent | 787fc5195b95c393e2bf6fb440a488c972c94fe4 (diff) |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h index ffcf062..33fbb43 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -93,6 +93,8 @@ struct fuse_ll { struct fuse_chan *fuse_kern_chan_new(int fd); +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); |