mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										5
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								client.c
									
									
									
									
									
								
							@@ -404,6 +404,8 @@ client_main(struct event_base *base, int argc, char **argv, int flags, int feat)
 | 
			
		||||
	} else if (client_exitreason != CLIENT_EXIT_NONE)
 | 
			
		||||
		fprintf(stderr, "%s\n", client_exit_message());
 | 
			
		||||
	setblocking(STDIN_FILENO, 1);
 | 
			
		||||
	setblocking(STDOUT_FILENO, 1);
 | 
			
		||||
	setblocking(STDERR_FILENO, 1);
 | 
			
		||||
	return (client_exitval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -431,6 +433,9 @@ client_send_identify(const char *ttynam, const char *cwd, int feat)
 | 
			
		||||
	if ((fd = dup(STDIN_FILENO)) == -1)
 | 
			
		||||
		fatal("dup failed");
 | 
			
		||||
	proc_send(client_peer, MSG_IDENTIFY_STDIN, fd, NULL, 0);
 | 
			
		||||
	if ((fd = dup(STDOUT_FILENO)) == -1)
 | 
			
		||||
		fatal("dup failed");
 | 
			
		||||
	proc_send(client_peer, MSG_IDENTIFY_STDOUT, fd, NULL, 0);
 | 
			
		||||
 | 
			
		||||
	pid = getpid();
 | 
			
		||||
	proc_send(client_peer, MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user