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.
This commit is contained in:
nicm
2015-10-31 13:12:03 +00:00
parent 01defc9f49
commit abb4e9e2fa
4 changed files with 23 additions and 26 deletions

3
tmux.h
View File

@ -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 *,