diff options
-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; } |