summaryrefslogtreecommitdiffstats
path: root/tmux-protocol.h
diff options
context:
space:
mode:
authornicm <nicm>2023-01-06 07:09:27 +0000
committernicm <nicm>2023-01-06 07:09:27 +0000
commit09afc6c8ee971918d925c441c41a9de7f598efb7 (patch)
tree790231afa3b8ae46b4b7dc13a925a23c0dc5dfdc /tmux-protocol.h
parenta41a92744188ec5c8a8d4ddc100ec15b52d04603 (diff)
If a pane is killed, cancel reading from the file. GitHub issue 3422.
Diffstat (limited to 'tmux-protocol.h')
-rw-r--r--tmux-protocol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tmux-protocol.h b/tmux-protocol.h
index 08422291..3cf00c09 100644
--- a/tmux-protocol.h
+++ b/tmux-protocol.h
@@ -66,7 +66,8 @@ enum msgtype {
MSG_WRITE_OPEN,
MSG_WRITE,
MSG_WRITE_READY,
- MSG_WRITE_CLOSE
+ MSG_WRITE_CLOSE,
+ MSG_READ_CANCEL
};
/*
@@ -92,6 +93,10 @@ struct msg_read_done {
int error;
};
+struct msg_read_cancel {
+ int stream;
+};
+
struct msg_write_open {
int stream;
int fd;