Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

fix: inherit current env vars when spawning subprocess on macos #1964

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

gau-nernst
Copy link
Contributor

Describe Your Changes

Currently only Linux inherits current env vars when spawning subprocess. Seems like Linux automatically detects environ variable. For MacOS, simply declare an extern variable will do the trick. Hence, this PR makes the behavior of SpawnProcess() more consistent across platforms. (We will need to fix it for Windows too...)

This will be required for my future work on Python engine.

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@gau-nernst gau-nernst merged commit 19eb7ea into dev Feb 13, 2025
8 checks passed
@gau-nernst gau-nernst deleted the thien/macos_spawn_env branch February 13, 2025 11:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants