Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/+stopgroup-test-iters.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The test that `proc.stopGroup` kills a child whose pgid was only just published runs 50 times instead of 100: without the kill fix it fails within its first three runs either way, and it takes half as long.
2 changes: 1 addition & 1 deletion src/proc_test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ test "stopGroup on a pgid as soon as it is published kills the child" {
try linux.sched_setaffinity(0, &one);
}
defer if (pinned) linux.sched_setaffinity(0, &cpus) catch {};
for (0..100) |i| {
for (0..50) |i| {
stop_pgid.store(0, .seq_cst);
const name = A.print("background{d}", .{i}) catch unreachable;
const script = A.print("sleep 30 >/dev/null &\necho $! > {s}\nsleep 2\n", .{name}) catch unreachable;
Expand Down
Loading