mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	proc_send_s now seems unnecessary.
This commit is contained in:
		@@ -371,7 +371,7 @@ server_client_detach(struct client *c, enum msgtype msgtype)
 | 
			
		||||
 | 
			
		||||
	c->flags |= CLIENT_DETACHING;
 | 
			
		||||
	notify_client("client-detached", c);
 | 
			
		||||
	proc_send_s(c->peer, msgtype, s->name);
 | 
			
		||||
	proc_send(c->peer, msgtype, -1, s->name, strlen(s->name) + 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Execute command to replace a client. */
 | 
			
		||||
@@ -1721,7 +1721,7 @@ server_client_dispatch_shell(struct client *c)
 | 
			
		||||
	shell = options_get_string(global_s_options, "default-shell");
 | 
			
		||||
	if (*shell == '\0' || areshell(shell))
 | 
			
		||||
		shell = _PATH_BSHELL;
 | 
			
		||||
	proc_send_s(c->peer, MSG_SHELL, shell);
 | 
			
		||||
	proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1);
 | 
			
		||||
 | 
			
		||||
	proc_kill_peer(c->peer);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user