summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 923bc3dd7..e9a402f7d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,8 @@ const struct fuse_operations_compat22 *fuse_ops_compat22 = NULL;
const struct fuse_operations_compat2 *fuse_ops_compat2 = NULL;
const struct fuse_operations *fuse_ops25 = NULL;
+__thread struct fuse_context *libfuse_ctx;
+
/* the port where to write out debug messages to, NULL to omit these */
FILE *debug_port = NULL;
@@ -598,6 +600,5 @@ fuse_exited(struct fuse *f)
struct fuse_context *
fuse_get_context(void)
{
- struct fuse_context *ctx = cthread_data(cthread_self());
- return ctx;
+ return libfuse_ctx;
}