From fea8af9b11b500a45344f836055d39963204878f Mon Sep 17 00:00:00 2001 From: ln-tech Date: Wed, 13 Nov 2019 07:45:57 +0100 Subject: SIGINT fix, Reader-Writer oroblem fix --- src/fuse/connection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/fuse/connection.h') diff --git a/src/fuse/connection.h b/src/fuse/connection.h index c04d75b..ceb5050 100644 --- a/src/fuse/connection.h +++ b/src/fuse/connection.h @@ -12,7 +12,9 @@ #define NO_SPLICE 0 #define SPLICE 1 +extern volatile bool keepRunning; struct _dnbd3_async; +extern pthread_mutex_t mutexInit; typedef struct _dnbd3_async { struct _dnbd3_async *next; // Next in this linked list (provate field, not set by caller) @@ -21,7 +23,7 @@ typedef struct _dnbd3_async { uint64_t offset; uint32_t length; int mode; // 0 splice off, 1 splice on, ... - fuse_req_t *fuse_req; + fuse_req_t fuse_req; } dnbd3_async_t; bool connection_init(const char *hosts, const char *image, const uint16_t rid, const bool learnNewServers); -- cgit v1.2.3-55-g7522