From d6cd84358f729fbd01579605e4f325c737728ba1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 21 Jul 2020 16:44:45 +0200 Subject: [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. --- src/fuse/connection.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fuse/connection.h') 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_ */ -- cgit v1.2.3-55-g7522