1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-17 21:47:07 +00:00
termux-packages/root-packages/libfuse3/lib-fuse_i.h.patch
Tee KOBAYASHI 78a624ab54 libfuse3: Use negative logic for pthread cancelation
to avoid race condition.
2022-12-13 13:23:32 +00:00

20 lines
323 B
Diff

--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -8,6 +8,7 @@
#include "fuse.h"
#include "fuse_lowlevel.h"
+#include <stdatomic.h>
struct mount_opts;
@@ -64,6 +65,8 @@ struct fuse_session {
struct fuse_notify_req notify_list;
size_t bufsize;
int error;
+ atomic_flag cancel;
+ int *retval;
};
struct fuse_chan {