mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Sync OpenBSD patchset 1114:
Instead of passing stdin/stdout/stderr file descriptors over imsg and handling them in the server, handle them in the client and pass buffers over imsg. This is much tidier for some upcoming changes and the performance hit isn't critical. The tty fd is still passed to the server as before. This bumps the tmux protocol version so new clients and old servers are incompatible.
This commit is contained in:
		| @@ -79,7 +79,8 @@ cmd_save_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) | ||||
| 			ctx->error(ctx, "%s: can't write to stdout", path); | ||||
| 			return (-1); | ||||
| 		} | ||||
| 		bufferevent_write(c->stdout_event, pb->data, pb->size); | ||||
| 		evbuffer_add(c->stdout_data, pb->data, pb->size); | ||||
| 		server_push_stdout(c); | ||||
| 	} else { | ||||
| 		if (c != NULL) | ||||
| 			wd = c->cwd; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tiago Cunha
					Tiago Cunha