fix broken Tunnel potentially causing SIGPIPE
we need to ignore the signal, so the regular error handling can kick in.
This commit is contained in:
		
							parent
							
								
									b9a4746b54
								
							
						
					
					
						commit
						b841374827
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue