Skip to content

Commit 602557a

Browse files
moshevdscsabahenk
authored andcommitted
Bugfix: Prevent deadlock in opendir_func
When returning neither None or an int from opendir, fuse-python does not release the GIL and as a result, the application deadlocks. This is a simple fix, solving the issue by removing the premature return and instead using the OUT path already present in the EPILOGUE macro.
1 parent f489863 commit 602557a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fuseparts/_fusemodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ opendir_func(const char *path, struct fuse_file_info *fi)
281281

282282
fi->fh = (uintptr_t) v;
283283

284-
return 0;
284+
ret = 0;
285+
goto OUT;
285286

286287
EPILOGUE
287288
}

0 commit comments

Comments
 (0)