diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-05-24 12:01:21 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-05-24 12:01:21 +0100 |
commit | aeefd585a090b6bf0d38888efde9e551a19dce07 (patch) | |
tree | 78bc5fe6adb466e539b691dd46b74b0e4b82f2a3 /cmd-new-session.c | |
parent | e71c5efd58b5160864ce851a4cbc93e5fde93685 (diff) | |
parent | 18aab909593440bfa4fe003a9f683c0fb2993461 (diff) | |
download | rtmux-aeefd585a090b6bf0d38888efde9e551a19dce07.tar.gz rtmux-aeefd585a090b6bf0d38888efde9e551a19dce07.tar.bz2 rtmux-aeefd585a090b6bf0d38888efde9e551a19dce07.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index a9a0376b..be29122d 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -165,13 +165,13 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) * the terminal as that calls tcsetattr() to prepare for tmux taking * 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))) { cmdq_error(item, "sessions should be nested with care, " "unset $TMUX to force"); goto fail; } - if (tcgetattr(c->tty.fd, &tio) != 0) + if (tcgetattr(c->fd, &tio) != 0) fatal("tcgetattr failed"); tiop = &tio; } else |