summaryrefslogtreecommitdiffstats
path: root/cmd-save-buffer.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-22 20:56:35 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-22 20:56:35 +0000
commitffab6dbc9a14b515be3d67d02f8618e93cf5aee6 (patch)
tree9ad9dfc3bcc8e7133192c700835621dc9c35259e /cmd-save-buffer.c
parent04bf0d8efc25d7e40fc034db0f2546cf8a09cfda (diff)
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.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r--cmd-save-buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index 0ce2ef09..1e3cbe6d 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;