Use setsid to update /tmp/sxmo_bar after call to refresh bar after process dead
This commit is contained in:
		
							parent
							
								
									b3463928f8
								
							
						
					
					
						commit
						18745b05bb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8,7 +8,7 @@ fatalerr() {
 | 
			
		|||
	mmcli -m "$(mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2)" --voice-hangup-all
 | 
			
		||||
	alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore
 | 
			
		||||
	notify-send "$1"
 | 
			
		||||
	(sleep 0.5; echo 1 > /tmp/sxmo_bar) &
 | 
			
		||||
	setsid -f sh -c 'sleep 2; echo 1 > /tmp/sxmo_bar'
 | 
			
		||||
	kill -9 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue