mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 14:59:14 +00:00
std.Thread: add CLONE_CHILD_SETTID to fix join()
This commit is contained in:
parent
6dd6604638
commit
2a6ba41020
@ -598,10 +598,10 @@ const LinuxThreadImpl = struct {
|
||||
.thread = .{ .mapped = mapped },
|
||||
};
|
||||
|
||||
const flags: u32 = os.CLONE_VM | os.CLONE_FS | os.CLONE_FILES |
|
||||
os.CLONE_SIGHAND | os.CLONE_THREAD | os.CLONE_SYSVSEM |
|
||||
os.CLONE_PARENT_SETTID | os.CLONE_CHILD_CLEARTID |
|
||||
os.CLONE_DETACHED | os.CLONE_SETTLS;
|
||||
const flags: u32 = os.CLONE_THREAD | os.CLONE_DETACHED |
|
||||
os.CLONE_VM | os.CLONE_FS | os.CLONE_FILES |
|
||||
os.CLONE_SIGHAND | os.CLONE_SYSVSEM | os.CLONE_SETTLS |
|
||||
os.CLONE_PARENT_SETTID | os.CLONE_CHILD_SETTID | os.CLONE_CHILD_CLEARTID;
|
||||
|
||||
switch (linux.getErrno(linux.clone(
|
||||
Instance.entryFn,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user