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: only remove hijackable envs from foreign parent #41079

Merged
merged 1 commit into from Jan 24, 2024
Merged

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Jan 23, 2024

Description of Change

#40770 took an aggressive way to disable all envs starting with NODE_ when process is started from a foreign parent, but it appears that at least a portion of apps are running into issues when using fork legally #40987.

This PR takes a simpler approach by only disabling the NODE_OPTIONS and NODE_REPL_EXTERNAL_MODULE to fix node IPC, I'll try to locate the root issue and figure out a better approach in following PRs.

Checklist

Release Notes

Notes: Fix forked child process not able to send IPC message under some cases on macOS.

@zcbenz zcbenz added semver/patch backwards-compatible bug fixes target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. target/29-x-y PR should also be added to the "29-x-y" branch. labels Jan 23, 2024
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 23, 2024
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 24, 2024
@ckerr ckerr merged commit 031d636 into main Jan 24, 2024
18 checks passed
@ckerr ckerr deleted the fix-node-env branch January 24, 2024 15:51
Copy link

release-clerk bot commented Jan 24, 2024

Release Notes Persisted

Fix forked child process not able to send IPC message under some cases on macOS.

@trop
Copy link
Contributor

trop bot commented Jan 24, 2024

I have automatically backported this PR to "26-x-y", please check out #41099

@trop trop bot added in-flight/26-x-y and removed target/26-x-y PR should also be added to the "26-x-y" branch. labels Jan 24, 2024
@trop
Copy link
Contributor

trop bot commented Jan 24, 2024

I have automatically backported this PR to "27-x-y", please check out #41100

@trop trop bot added in-flight/27-x-y and removed target/27-x-y PR should also be added to the "27-x-y" branch. labels Jan 24, 2024
@trop
Copy link
Contributor

trop bot commented Jan 24, 2024

I have automatically backported this PR to "28-x-y", please check out #41101

@trop
Copy link
Contributor

trop bot commented Jan 24, 2024

I have automatically backported this PR to "29-x-y", please check out #41102

@trop trop bot added in-flight/29-x-y and removed target/28-x-y PR should also be added to the "28-x-y" branch. target/29-x-y PR should also be added to the "29-x-y" branch. labels Jan 24, 2024
@trop trop bot added merged/29-x-y PR was merged to the "29-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. merged/26-x-y PR was merged to the "26-x-y" branch. and removed in-flight/29-x-y in-flight/28-x-y in-flight/27-x-y in-flight/26-x-y labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. merged/29-x-y PR was merged to the "29-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants