summaryrefslogtreecommitdiff
path: root/test/process/flags.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/flags.zig')
-rw-r--r--test/process/flags.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/process/flags.zig b/test/process/flags.zig
index c9aa12fb..cfdb1faf 100644
--- a/test/process/flags.zig
+++ b/test/process/flags.zig
@@ -730,7 +730,9 @@ fn killedTty(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
killed.kill(sig);
try exitsWith(&killed, -@as(c_int, @intCast(@intFromEnum(sig))), 5_000);
const own_z = z(a, "{s}", .{own});
- if (sig == .HUP) {
+ // As a pair (PARDES_PAIR) a hangup is a close (P36): the session,
+ // its last client gone and not kept, ends with it.
+ if (sig == .HUP and std.c.getenv("PARDES_PAIR") == null) {
// A hangup is the terminal's end: the session carries on
// detached (the daemon keeps it) until told to end.
try check(libc.access(own_z, 0) == 0, "a hangup ended the session", .{});