summaryrefslogtreecommitdiffstats
path: root/src/fuse/connection.h
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-21 16:44:45 +0200
committerSimon Rettberg2020-07-21 16:44:45 +0200
commitd6cd84358f729fbd01579605e4f325c737728ba1 (patch)
treef98f7e96952a797bb83942584a3577a7d853073f /src/fuse/connection.h
parent[FUSE] Formatting (diff)
downloaddnbd3-d6cd84358f729fbd01579605e4f325c737728ba1.tar.gz
dnbd3-d6cd84358f729fbd01579605e4f325c737728ba1.tar.xz
dnbd3-d6cd84358f729fbd01579605e4f325c737728ba1.zip
[FUSE] Properly signal worker threads to exit on shutdown
Our main signal handler sends SUGHUP to the receiver and background threads, so if they block in some recv() or poll() they will get EINTR and can check keepRunning.
Diffstat (limited to 'src/fuse/connection.h')
-rw-r--r--src/fuse/connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fuse/connection.h b/src/fuse/connection.h
index cd9846e..04d8894 100644
--- a/src/fuse/connection.h
+++ b/src/fuse/connection.h
@@ -33,6 +33,10 @@ bool connection_read( dnbd3_async_t *request );
void connection_close();
+void connection_signalShutdown();
+
+void connection_join();
+
size_t connection_printStats( char *buffer, const size_t len );
#endif /* CONNECTION_H_ */