diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-06-28 22:10:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-06-28 22:10:42 +0000 |
commit | 76bbdeb586ad93cfb16bd12db865b4c672a9168e (patch) | |
tree | 52ecf7ef2f819396844962ffaf1edbcb4e3bf6b1 /tmux.c | |
parent | 07a71fd432df5873515da82d2d620ec0d986b558 (diff) | |
download | rtmux-76bbdeb586ad93cfb16bd12db865b4c672a9168e.tar.gz rtmux-76bbdeb586ad93cfb16bd12db865b4c672a9168e.tar.bz2 rtmux-76bbdeb586ad93cfb16bd12db865b4c672a9168e.zip |
Send all three of stdin, stdout, stderr from the client to the server, so that
commands can directly make use of them. This means that load-buffer and
save-buffer can have "-" as the file to read from stdin or write to stdout.
This is a protocol version bump so the tmux server will need to be restarted
after upgrade (or an older client used).
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -596,7 +596,6 @@ main_dispatch(const char *shellcmd) { struct imsg imsg; ssize_t n, datalen; - struct msg_print_data printdata; struct msg_shell_data shelldata; if ((n = imsg_read(main_ibuf)) == -1 || n == 0) @@ -616,17 +615,6 @@ main_dispatch(const char *shellcmd) fatalx("bad MSG_EXIT size"); exit(main_exitval); - case MSG_ERROR: - case MSG_PRINT: - if (datalen != sizeof printdata) - fatalx("bad MSG_PRINT size"); - memcpy(&printdata, imsg.data, sizeof printdata); - printdata.msg[(sizeof printdata.msg) - 1] = '\0'; - - log_info("%s", printdata.msg); - if (imsg.hdr.type == MSG_ERROR) - main_exitval = 1; - break; case MSG_READY: if (datalen != 0) fatalx("bad MSG_READY size"); |