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:
		
							
								
								
									
										8
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								client.c
									
									
									
									
									
								
							@@ -352,9 +352,10 @@ client_main(int argc, char **argv, int flags)
 | 
			
		||||
void
 | 
			
		||||
client_send_identify(int flags)
 | 
			
		||||
{
 | 
			
		||||
	const char	*s;
 | 
			
		||||
	const char	 *s;
 | 
			
		||||
	char		**ss;
 | 
			
		||||
	int		 fd;
 | 
			
		||||
	int		  fd;
 | 
			
		||||
	pid_t		  pid;
 | 
			
		||||
 | 
			
		||||
	client_write_one(MSG_IDENTIFY_FLAGS, -1, &flags, sizeof flags);
 | 
			
		||||
 | 
			
		||||
@@ -374,6 +375,9 @@ client_send_identify(int flags)
 | 
			
		||||
		fatal("dup failed");
 | 
			
		||||
	client_write_one(MSG_IDENTIFY_STDIN, fd, NULL, 0);
 | 
			
		||||
 | 
			
		||||
	pid = getpid();
 | 
			
		||||
	client_write_one(MSG_IDENTIFY_CLIENTPID, -1, &pid, sizeof pid);
 | 
			
		||||
 | 
			
		||||
	for (ss = environ; *ss != NULL; ss++)
 | 
			
		||||
		client_write_one(MSG_IDENTIFY_ENVIRON, -1, *ss, strlen(*ss) + 1);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user