diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-01 23:15:20 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-01 23:15:20 +0000 |
commit | 874e3c166213a1dec3d191f78adc87b156c3f6e8 (patch) | |
tree | 15562a36134e5fcd32943818148ccd449fb6d3ea | |
parent | 180ff6921b1d995194c159729c5d494b07b802ca (diff) | |
download | libfuse-874e3c166213a1dec3d191f78adc87b156c3f6e8.tar.gz |
fix
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/fuse.c | 3 | ||||
-rw-r--r-- | lib/fuse_mt.c | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -3,6 +3,10 @@ * Fix compile problems with ancient (<=2.4.18) kernels (reported by Jeremy Smith) + * Add "allow_root" mount option. Patch by Yaroslav Rastrigin + + * Clear the 'exited' flag when mail loop is finished + 2004-10-28 Miklos Szeredi <miklos@szeredi.hu> * Make xattr functions work under 2.6 (bug found by Vincenzo @@ -1618,7 +1618,7 @@ int fuse_loop(struct fuse *f) struct fuse_cmd *cmd; if (__fuse_exited(f)) - return 0; + break; cmd = __fuse_read_cmd(f); if (cmd == NULL) @@ -1626,6 +1626,7 @@ int fuse_loop(struct fuse *f) __fuse_process_cmd(f, cmd); } + f->exited = 0; return 0; } diff --git a/lib/fuse_mt.c b/lib/fuse_mt.c index 345da33..58ec847 100644 --- a/lib/fuse_mt.c +++ b/lib/fuse_mt.c @@ -178,6 +178,7 @@ int __fuse_loop_mt(struct fuse *f, fuse_processor_t proc, void *data) pthread_mutex_unlock(&f->lock); mt_delete_context_key(); free(w); + f->exited = 0; return 0; } |