15 lines
		
	
	
	
		
			159 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
	
		
			159 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
|   | #! /bin/sh
 | ||
|  | # | ||
|  | # show that setting a trap on SIGCHLD is not disastrous. | ||
|  | # | ||
|  | 
 | ||
|  | trap 'echo caught a child death' SIGCHLD | ||
|  | 
 | ||
|  | sleep 5 & | ||
|  | sleep 5 & | ||
|  | sleep 5 & | ||
|  | 
 | ||
|  | wait | ||
|  | 
 | ||
|  | exit 0 |