Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node): support process.stdin.unref() #22865

Merged
merged 4 commits into from
Apr 27, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Mar 12, 2024

blocked by denoland/deno_core#648 unblocked

This PR adds private [REF]() and [UNREF]() methods to Stdin class, and call them from Node.js polyfill layer (TTY class). This enables process.stdin.unref() and process.stdin.ref() for the case when stdin is terminal.

closes #21796

@kt3k kt3k force-pushed the fix-process-stdin-unref branch 2 times, most recently from 7b8510e to a5c5a31 Compare April 25, 2024 07:30
@kt3k kt3k marked this pull request as ready for review April 25, 2024 07:34
@kt3k kt3k marked this pull request as draft April 25, 2024 07:59
@kt3k kt3k marked this pull request as ready for review April 26, 2024 05:21
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit 8178f75 into denoland:main Apr 27, 2024
17 checks passed
@kt3k kt3k deleted the fix-process-stdin-unref branch April 27, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[node-compat] process.stdin.unref should warn instead of throwing unreachable
2 participants