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

[SR-1636] No access to list of environment variables possible #44245

Open
swift-ci opened this issue May 28, 2016 · 1 comment
Open

[SR-1636] No access to list of environment variables possible #44245

swift-ci opened this issue May 28, 2016 · 1 comment

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented May 28, 2016

Previous ID SR-1636
Radar None
Original Reporter dunkelstern (JIRA User)
Type Improvement
Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels Improvement
Assignee None
Priority Medium

md5: d3d5cc37eaf7ee30088f69ab08bb804b

Issue Description:

As `fork` is not allowed we have to resort to `posix_spawn` which needs a list of environment variables to set for the child. We currently have no method of getting to such a list as the environment is not reachable, neither is there something in `Process` nor can we access the `environ` variable that is exported from the c library.

As I can see `Foundation` does a call to a `CoreFoundation` method to get that. If we do not want to use `Foundation` we're screwed.

@swift-ci
Copy link
Collaborator Author

swift-ci commented May 28, 2016

Comment by Johannes Schriewer (JIRA)

Pull request: #2757

Ping @dabrahams and probably @jckarter

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant