deno
a90713b2 - fix: stop dup-ing stdio fds, remove _readWithCancelHandle

Commit
227 days ago
fix: stop dup-ing stdio fds, remove _readWithCancelHandle Simplify stdio fd management: 1. Use stdio fds 0/1/2 directly instead of dup-ing them. Since O_NONBLOCK is per-file-description, dup doesn't isolate it anyway. Add Drop impl for StdFileResourceInner that leaks stdio fds to prevent closing them at shutdown. 2. Remove _readWithCancelHandle from Stdin class and stream_wrap.ts. Remove op_read_create_cancel_handle and op_read_with_cancel_handle ops and ReadCancelResource -- these are no longer needed. 3. Clean up 12_io.js: remove unused imports and the cancel handle symbol/method. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading