diff options
Diffstat (limited to 'test/process/flags.zig')
| -rw-r--r-- | test/process/flags.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/process/flags.zig b/test/process/flags.zig index 41aacc03..aa5b7497 100644 --- a/test/process/flags.zig +++ b/test/process/flags.zig @@ -773,12 +773,12 @@ fn signalCleansUp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try std.testing.expect(d.exists("pardes-9p-sig.sock")); var sig = first; if (sig == .HUP) { - _ = libc.kill(d.pid, sig); + _ = libc.kill(d.child.pid, sig); process.nap(300); try check(d.exists("pardes-9p-sig.sock") and (try d.files.read("/index")).len > 0, "a hangup ended a kept session", .{}); sig = .TERM; } - _ = libc.kill(d.pid, sig); + _ = libc.kill(d.child.pid, sig); const deadline = process.nowMs() + 5_000; while (d.exists("pardes-9p-sig.sock") and process.nowMs() < deadline) process.nap(10); try check(!d.exists("pardes-9p-sig.sock"), "{t}: the socket left", .{first}); |
