summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-03 11:41:47 +0200
committerSimon Rettberg2024-05-13 18:26:42 +0200
commit7dc3f8159a0435b16a99bf43634e06f4f7642063 (patch)
tree9c6da73f884d8d7e47cc640ffef8f6392ee1d272
parentgithub: cowtest: Write test files to storage at /mnt (diff)
downloaddnbd3-7dc3f8159a0435b16a99bf43634e06f4f7642063.tar.gz
dnbd3-7dc3f8159a0435b16a99bf43634e06f4f7642063.tar.xz
dnbd3-7dc3f8159a0435b16a99bf43634e06f4f7642063.zip
[FUSE] Cleanup
-rw-r--r--src/fuse/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c
index 7be34bd..b665aed 100644
--- a/src/fuse/main.c
+++ b/src/fuse/main.c
@@ -402,7 +402,6 @@ int main( int argc, char *argv[] )
char *cow_server_address = NULL;
char *image_Name = NULL;
char *log_file = NULL;
- cow_merge_after_upload = false;
uint16_t rid = 0;
char **newArgv;
int newArgc;
@@ -548,12 +547,12 @@ int main( int argc, char *argv[] )
sigemptyset( &newHandler.sa_mask );
sigaction( SIGHUP, &newHandler, NULL );
} while ( 0 );
- if ( useCow ) {
- sigset_t sigmask;
- sigemptyset( &sigmask );
- sigaddset( &sigmask, SIGQUIT ); // Block here and unblock in cow as abort signal
- pthread_sigmask( SIG_BLOCK, &sigmask, NULL );
- }
+ if ( useCow ) {
+ sigset_t sigmask;
+ sigemptyset( &sigmask );
+ sigaddset( &sigmask, SIGQUIT ); // Block here and unblock in cow as abort signal
+ pthread_sigmask( SIG_BLOCK, &sigmask, NULL );
+ }
if ( !connection_init( server_address, image_Name, rid, learnNewServers ) ) {
logadd( LOG_ERROR, "Could not connect to any server. Bye.\n" );