=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-new-session.c,v retrieving revision 1.133 retrieving revision 1.134 diff -u -r1.133 -r1.134 --- src/usr.bin/tmux/cmd-new-session.c 2020/05/16 15:45:29 1.133 +++ src/usr.bin/tmux/cmd-new-session.c 2020/05/24 09:13:06 1.134 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-session.c,v 1.133 2020/05/16 15:45:29 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.134 2020/05/24 09:13:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -165,13 +165,13 @@ * 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