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

add cross-platform API to std.process.Child for spawning a detached process #19205

Open
andrewrk opened this issue Mar 6, 2024 · 1 comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Mar 6, 2024

POSIX uses the setsid function in between fork() and execv(). Windows has a different API that corresponds to the same thing.

@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library. labels Mar 6, 2024
@andrewrk andrewrk added this to the 0.13.0 milestone Mar 6, 2024
izaakschroeder added a commit to izaakschroeder/zig that referenced this issue Mar 9, 2024
Does what it says on the box.

Refs: ziglang#19205
izaakschroeder added a commit to izaakschroeder/zig that referenced this issue Mar 9, 2024
Does what it says on the box.

Refs: ziglang#19205
izaakschroeder added a commit to izaakschroeder/zig that referenced this issue Mar 9, 2024
Does what it says on the box.

Refs: ziglang#19205
izaakschroeder added a commit to izaakschroeder/zig that referenced this issue Mar 9, 2024
Does what it says on the box.

Refs: ziglang#19205
@izaakschroeder
Copy link

I took a stab at this @andrewrk here. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

No branches or pull requests

2 participants