version 1.133, 2020/05/16 15:45:29 |
version 1.134, 2020/05/24 09:13:06 |
|
|
* the terminal as that calls tcsetattr() to prepare for tmux taking |
* the terminal as that calls tcsetattr() to prepare for tmux taking |
* over. |
* over. |
*/ |
*/ |
if (!detached && !already_attached && c->tty.fd != -1) { |
if (!detached && !already_attached && c->fd != -1) { |
if (server_client_check_nested(cmdq_get_client(item))) { |
if (server_client_check_nested(cmdq_get_client(item))) { |
cmdq_error(item, "sessions should be nested with care, " |
cmdq_error(item, "sessions should be nested with care, " |
"unset $TMUX to force"); |
"unset $TMUX to force"); |
goto fail; |
goto fail; |
} |
} |
if (tcgetattr(c->tty.fd, &tio) != 0) |
if (tcgetattr(c->fd, &tio) != 0) |
fatal("tcgetattr failed"); |
fatal("tcgetattr failed"); |
tiop = &tio; |
tiop = &tio; |
} else |
} else |