mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Clear signal flags /before/ taking action and continue afterwards to reduce
chance of dropping signals. Pointed out by deraadt@.
This commit is contained in:
		
							
								
								
									
										9
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								client.c
									
									
									
									
									
								
							@@ -185,17 +185,20 @@ client_main(void)
 | 
			
		||||
			client_write_server(MSG_EXITING, NULL, 0);
 | 
			
		||||
		}
 | 
			
		||||
		if (sigchld) {
 | 
			
		||||
			waitpid(WAIT_ANY, NULL, WNOHANG);
 | 
			
		||||
			sigchld = 0;
 | 
			
		||||
			waitpid(WAIT_ANY, NULL, WNOHANG);
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
		if (sigwinch) {
 | 
			
		||||
			sigwinch = 0;
 | 
			
		||||
			client_write_server(MSG_RESIZE, NULL, 0);
 | 
			
		||||
 			sigwinch = 0;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
		if (sigcont) {
 | 
			
		||||
			sigcont = 0;
 | 
			
		||||
			siginit();
 | 
			
		||||
			client_write_server(MSG_WAKEUP, NULL, 0);
 | 
			
		||||
			sigcont = 0;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		pfd.fd = client_ibuf.fd;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user