deno
5a142158 - fix(ext/node): also wake event loop from read_start_tty on Windows

Commit
114 days ago
fix(ext/node): also wake event loop from read_start_tty on Windows The wake() from ensure_tty_registered only fires for queued writes. If read_start_tty is called after run_io() has already finished iterating tty_handles (e.g. from a microtask), the stdin handle won't be processed until the next event loop tick. But nothing wakes the loop to trigger that tick. Wake from read_start_tty so poll_tty_handle runs promptly, which both registers RegisterWaitForSingleObject for input notifications and drains any pending stdout write callbacks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading