Apply suggestion from @vtjnash

This commit is contained in:
Jameson Nash 2026-03-16 20:20:33 -04:00 committed by GitHub
parent bcc11d8261
commit fd353edd30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,7 @@ int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) {
UNREACHABLE();
}
/* Apply changes after draining */
/* Apply changes now, to avoid blocking. */
rc = uv__tcsetattr(fd, TCSANOW, &tmp);
if (rc == 0)
tty->mode = mode;