diff options
author | Simon Rettberg | 2020-07-21 16:44:45 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-21 16:44:45 +0200 |
commit | d6cd84358f729fbd01579605e4f325c737728ba1 (patch) | |
tree | f98f7e96952a797bb83942584a3577a7d853073f /src/fuse/connection.h | |
parent | [FUSE] Formatting (diff) | |
download | dnbd3-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.h | 4 |
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_ */ |