Skip to content

fix(node/process): ignore SIGBREAK binding on non windows #2014

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

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Mar 9, 2022

process.on("SIGBREAK", handlers) throws with invalid signal error (SIGBREAK is not a valid signal name for non-windows platforms, ref: https://github.com/denoland/deno/blob/245f69256b9e22f7759b887e82138ad3844a8cf4/runtime/ops/signal.rs).

This PR makes process.on ignore SIGBREAK binding on non-windows platforms.

Note: SIGBREAK is a signal for handling CTRL + BREAK on windows, and it's only meaningful for windows. ref: https://nodejs.org/api/process.html#event-message

part of denoland/deno#18326

@kt3k kt3k merged commit 1be36ca into denoland:main Mar 9, 2022
@kt3k kt3k deleted the fix/ignore-sigbreak-on-non-windows branch March 9, 2022 14:07
@kt3k kt3k self-assigned this Mar 15, 2022
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.

2 participants