mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	It should no longer be necessary to ignore SIGCHLD because it is now
blocked around daemon(), and doing so causes trouble with newer libevent (it cannot restore the original handler). Reported by Azat Khuzhin in GitHub issue 3626.
This commit is contained in:
		
							
								
								
									
										3
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								client.c
									
									
									
									
									
								
							@@ -246,9 +246,6 @@ client_main(struct event_base *base, int argc, char **argv, uint64_t flags,
 | 
				
			|||||||
	u_int			 ncaps = 0;
 | 
						u_int			 ncaps = 0;
 | 
				
			||||||
	struct args_value	*values;
 | 
						struct args_value	*values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Ignore SIGCHLD now or daemon() in the server will leave a zombie. */
 | 
					 | 
				
			||||||
	signal(SIGCHLD, SIG_IGN);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/* Set up the initial command. */
 | 
						/* Set up the initial command. */
 | 
				
			||||||
	if (shell_command != NULL) {
 | 
						if (shell_command != NULL) {
 | 
				
			||||||
		msg = MSG_SHELL;
 | 
							msg = MSG_SHELL;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user