Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/unix/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
*/
static int isreallyatty(int file) {
int rc;

rc = !ioctl(file, TXISATTY + 0x81, NULL);
if (!rc && errno != EBADF)
errno = ENOTTY;
Expand Down Expand Up @@ -334,7 +334,7 @@ int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) {
}

/* Apply changes after draining */
rc = uv__tcsetattr(fd, TCSADRAIN, &tmp);
rc = uv__tcsetattr(fd, TCSANOW, &tmp);
if (rc == 0)
tty->mode = mode;

Expand Down
Loading