mirror of
https://github.com/tmux/tmux.git
synced 2025-11-05 01:56:07 +00:00
Merge branch 'obsd-master'
This commit is contained in:
@@ -95,6 +95,8 @@ server_client_create(int fd)
|
||||
|
||||
environ_init(&c->environ);
|
||||
|
||||
c->cwd = -1;
|
||||
|
||||
c->cmdq = cmdq_new(c);
|
||||
c->cmdq->client_exit = 1;
|
||||
|
||||
@@ -1267,12 +1269,11 @@ server_client_msg_identify(struct client *c, struct imsg *imsg)
|
||||
|
||||
if (c->fd == -1)
|
||||
return;
|
||||
if (!isatty(c->fd)) {
|
||||
if (tty_init(&c->tty, c, c->fd, c->term) != 0) {
|
||||
close(c->fd);
|
||||
c->fd = -1;
|
||||
return;
|
||||
}
|
||||
tty_init(&c->tty, c, c->fd, c->term);
|
||||
if (c->flags & CLIENT_UTF8)
|
||||
c->tty.flags |= TTY_UTF8;
|
||||
if (c->flags & CLIENT_256COLOURS)
|
||||
|
||||
Reference in New Issue
Block a user