From 94c2b63955271d039c62e7c966aa82c9565d28ec Mon Sep 17 00:00:00 2001 From: "therealneworld@gmail.com" Date: Thu, 2 Jun 2011 14:27:02 +0200 Subject: add "remember" option This works similar to "noforget" except that eventually the node will be allowed to expire from the cache. --- lib/fuse_mt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/fuse_mt.c') diff --git a/lib/fuse_mt.c b/lib/fuse_mt.c index 95c3a5c..f6dbe71 100644 --- a/lib/fuse_mt.c +++ b/lib/fuse_mt.c @@ -110,7 +110,13 @@ int fuse_loop_mt(struct fuse *f) if (f == NULL) return -1; - return fuse_session_loop_mt(fuse_get_session(f)); + int res = fuse_start_cleanup_thread(f); + if (res) + return -1; + + res = fuse_session_loop_mt(fuse_get_session(f)); + fuse_stop_cleanup_thread(f); + return res; } FUSE_SYMVER(".symver fuse_loop_mt_proc,__fuse_loop_mt@"); -- cgit v1.2.3