mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Fire SIGCHLD after utempter_add_record since it probably eats it.
This commit is contained in:
		
							
								
								
									
										2
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								window.c
									
									
									
									
									
								
							@@ -21,6 +21,7 @@
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <fnmatch.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
@@ -915,6 +916,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
 | 
			
		||||
#ifdef HAVE_UTEMPTER
 | 
			
		||||
	xsnprintf(s, sizeof s, "tmux(%lu).%%%u", (long) getpid(), wp->id);
 | 
			
		||||
	utempter_add_record(wp->fd, s);
 | 
			
		||||
	kill(getpid(), SIGCHLD);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	setblocking(wp->fd, 0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user