From ba3f55e71325f31399fbd2134868d6ba7f774451 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:12:51 -0300 Subject: daemon: what a stub is told (detached, exited, refused) is one daemon.tellStub(fd, fmt, args), where tellDetached, tellExit and refuseStub each formatted a word into a buffer, wrote it and closed the pipe Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/gui/gui.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 33922286..7d77ed2a 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -4455,7 +4455,7 @@ fn deliverNote(ctx: *anyopaque, note: daemon.Note) void { // A terminal for a window session: the daemon refuses that kind // before it is sent, so only an old one's would be here. if (a.tty >= 0) _ = libc.close(a.tty); - if (a.stub >= 0) daemon.refuseStub(a.stub, "a window session takes no terminal"); + if (a.stub >= 0) daemon.tellStub(a.stub, "r{s}", .{"a window session takes no terminal"}); if (a.tty < 0) q.push(.window); }, .adopted => |a| { -- cgit v1.3