-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
std.process.Child: use clone() instead of fork() #22368
base: master
Are you sure you want to change the base?
Conversation
0b61b7d
to
57ee91d
Compare
|
6f31e98
to
351ce97
Compare
I use |
2ac3a31
to
0713379
Compare
@alexrp PTAL. |
27e8236
to
25c7f1b
Compare
e88bb54
to
f57a745
Compare
otherwise libc may silently ignore some RT signals for NPTL
Probably not. The workaround can be removed once that bug has been fixed. By the way, I'm not particularly familiar with the actual process management logic in |
@@ -15,6 +15,8 @@ const native_os = builtin.os.tag; | |||
const Allocator = std.mem.Allocator; | |||
const ChildProcess = @This(); | |||
|
|||
const use_clone = native_os == .linux and builtin.zig_backend != .stage2_c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const use_clone = native_os == .linux and builtin.zig_backend != .stage2_c; | |
const use_clone = native_os == .linux and builtin.zig_backend != .stage2_c; // https://github.com/ziglang/zig/issues/22427 |
See discussions in #1620.
This PR depends on #22341.(merged)