diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-05-21 18:27:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-05-21 18:27:42 +0000 |
commit | 7a4679a17f827efaebb5dac5059f4b8bba69c4cf (patch) | |
tree | 03e87bbf9af9f6e8a957caedad6ec1b37f306e98 /cmd-save-buffer.c | |
parent | ac7e2f13e999c1f24b58f7db868c7faeeb0a3c0e (diff) | |
download | rtmux-7a4679a17f827efaebb5dac5059f4b8bba69c4cf.tar.gz rtmux-7a4679a17f827efaebb5dac5059f4b8bba69c4cf.tar.bz2 rtmux-7a4679a17f827efaebb5dac5059f4b8bba69c4cf.zip |
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.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r-- | cmd-save-buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c index 93ec4b0b..80f9d572 100644 --- a/cmd-save-buffer.c +++ b/cmd-save-buffer.c @@ -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; |