commit b84137482765c90ce0578b56e9fe322474bf4771
parent b9a4746b54cd4159941e4bb4650d75cb26a84a25
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Sun, 3 Jul 2022 11:40:42 +0200
fix broken Tunnel potentially causing SIGPIPE
we need to ignore the signal, so the regular error handling can kick in.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
@@ -541,6 +541,8 @@ main( int argc, char **argv )
if (load_config( config ))
return 1;
+ signal( SIGPIPE, SIG_IGN );
+
if (mvars->list_stores)
list_stores( mvars, argv + oind );
else