mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Handle SIGINT
Gracefully exit on SIGINT, like we do for SIGTERM.
This commit is contained in:
		
							parent
							
								
									45aa5c104c
								
							
						
					
					
						commit
						6991ac8c70
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -367,6 +367,7 @@ int main(int argc, char **argv) {
 | 
			
		|||
 | 
			
		||||
	// handle SIGTERM signals
 | 
			
		||||
	signal(SIGTERM, sig_handler);
 | 
			
		||||
	signal(SIGINT, sig_handler);
 | 
			
		||||
 | 
			
		||||
	// prevent ipc from crashing sway
 | 
			
		||||
	signal(SIGPIPE, SIG_IGN);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue