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.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/process/flags.zig b/test/process/flags.zig
index fffc2867..41aacc03 100644
--- a/test/process/flags.zig
+++ b/test/process/flags.zig
@@ -652,6 +652,8 @@ fn commandBody(a: std.mem.Allocator, c: *Conn, node: []const u8) ![]const u8 {
}
fn outside(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
+ // The terminal frontend's and a detached session's own: a window is neither.
+ try process.only(.tty);
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
@@ -696,6 +698,8 @@ fn socketFile(path: []const u8) !void {
}
fn killedTty(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
+ // The terminal frontend's and a detached session's own: a window is neither.
+ try process.only(.tty);
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
@@ -758,6 +762,8 @@ fn daemonGone(d: *const process.Detached) void {
}
fn signalCleansUp(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
+ // The terminal frontend's and a detached session's own: a window is neither.
+ try process.only(.tty);
// A detached session told to stop by a signal unlinks its sockets. A
// hangup is a terminal's end, not a session's: the daemon keeps it.
for ([_]libc.SIG{ .TERM, .INT, .HUP }) |first| {