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

View File

@ -1178,7 +1178,6 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg)
proc_send(c->peer, MSG_STDIN, -1, NULL, 0);
c->tty.fd = -1;
c->tty.log_fd = -1;
close(c->fd);
c->fd = -1;