mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Don't die if the client has been detached when the job finishes, just
don't display the output.
This commit is contained in:
		| @@ -82,6 +82,11 @@ cmd_run_shell_callback(struct job *job) | |||||||
| 	int				 retcode; | 	int				 retcode; | ||||||
| 	u_int				 lines; | 	u_int				 lines; | ||||||
|  |  | ||||||
|  | 	if (ctx->cmdclient != NULL && ctx->cmdclient->flags & CLIENT_DEAD) | ||||||
|  | 		return; | ||||||
|  | 	if (ctx->curclient != NULL && ctx->curclient->flags & CLIENT_DEAD) | ||||||
|  | 		return; | ||||||
|  |  | ||||||
| 	lines = 0; | 	lines = 0; | ||||||
| 	do { | 	do { | ||||||
| 		if ((line = evbuffer_readline(job->event->input)) != NULL) { | 		if ((line = evbuffer_readline(job->event->input)) != NULL) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott