mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add a missing client-detached hook when the server shuts down, and do
not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
This commit is contained in:
		@@ -1279,6 +1279,8 @@ server_client_check_exit(struct client *c)
 | 
			
		||||
	if (EVBUFFER_LENGTH(c->stderr_data) != 0)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if (c->flags & CLIENT_ATTACHED)
 | 
			
		||||
		notify_client("client-detached", c);
 | 
			
		||||
	proc_send(c->peer, MSG_EXIT, -1, &c->retval, sizeof c->retval);
 | 
			
		||||
	c->flags &= ~CLIENT_EXIT;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user