forked from ungleich-public/cdist
		
	only trap signals in front end scripts
Otherwise children execute kill egain and the shell segfaults Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								56cf428d4c
							
						
					
				
			
			
				commit
				
					
						6f99de75a5
					
				
			
		
					 3 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,9 @@
 | 
			
		|||
[ $# -eq 1 ] || __cdist_usage "<target host>"
 | 
			
		||||
set -eu
 | 
			
		||||
 | 
			
		||||
# Kill children on interrupt - only in interactive scripts
 | 
			
		||||
trap __cdist_kill_on_interrupt INT TERM
 | 
			
		||||
 | 
			
		||||
__cdist_target_host="$1"
 | 
			
		||||
 | 
			
		||||
# Make target host available for non-core
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue