diff options
author | nicm <nicm> | 2023-01-06 07:09:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-01-06 07:09:27 +0000 |
commit | 09afc6c8ee971918d925c441c41a9de7f598efb7 (patch) | |
tree | 790231afa3b8ae46b4b7dc13a925a23c0dc5dfdc /tmux.h | |
parent | a41a92744188ec5c8a8d4ddc100ec15b52d04603 (diff) | |
download | rtmux-09afc6c8ee971918d925c441c41a9de7f598efb7.tar.gz rtmux-09afc6c8ee971918d925c441c41a9de7f598efb7.tar.bz2 rtmux-09afc6c8ee971918d925c441c41a9de7f598efb7.zip |
If a pane is killed, cancel reading from the file. GitHub issue 3422.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2611,7 +2611,9 @@ void file_print_buffer(struct client *, void *, size_t); void printflike(2, 3) file_error(struct client *, const char *, ...); void file_write(struct client *, const char *, int, const void *, size_t, client_file_cb, void *); -void file_read(struct client *, const char *, client_file_cb, void *); +struct client_file *file_read(struct client *, const char *, client_file_cb, + void *); +void file_cancel(struct client_file *); void file_push(struct client_file *); int file_write_left(struct client_files *); void file_write_open(struct client_files *, struct tmuxpeer *, @@ -2623,6 +2625,7 @@ void file_read_open(struct client_files *, struct tmuxpeer *, struct imsg *, void file_write_ready(struct client_files *, struct imsg *); void file_read_data(struct client_files *, struct imsg *); void file_read_done(struct client_files *, struct imsg *); +void file_read_cancel(struct client_files *, struct imsg *); /* server.c */ extern struct tmuxproc *server_proc; |