From abb4e9e2fa68c38f71fedc6d1ce2e78fcaa59495 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 31 Oct 2015 13:12:03 +0000 Subject: The output log is only useful once and it means creating a file, so open it once at startup instead of in every call to tty_open. --- tmux.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index f26f1c8c..25b51350 100644 --- a/tmux.h +++ b/tmux.h @@ -1102,8 +1102,6 @@ struct tty { int fd; struct bufferevent *event; - int log_fd; - struct termios tio; struct grid_cell cell; @@ -1555,6 +1553,7 @@ void environ_update(const char *, struct environ *, struct environ *); void environ_push(struct environ *); /* tty.c */ +void tty_create_log(void); void tty_init_termios(int, struct termios *, struct bufferevent *); void tty_raw(struct tty *, const char *); void tty_attributes(struct tty *, const struct grid_cell *, -- cgit v1.2.3