summaryrefslogtreecommitdiff
path: root/src/host_io.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-30 15:36:47 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:17 -0300
commitb9eefda75ab9a63fc510de781d02b92fc04ad31d (patch)
tree10ad6accba3a767a37fcd334d6316a2fc3f53442 /src/host_io.zig
parent12c257e624d3f1f80ca3df041b54026ff772d638 (diff)
parent31b7bcbae734cd1d0a432ff5acaf9c65bcd33897 (diff)
downloadpardes-b9eefda75ab9a63fc510de781d02b92fc04ad31d.tar.gz
pardes-b9eefda75ab9a63fc510de781d02b92fc04ad31d.zip
Release Pardes 0.8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/host_io.zig')
-rw-r--r--src/host_io.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host_io.zig b/src/host_io.zig
index c8c537b9..8cbdd2d4 100644
--- a/src/host_io.zig
+++ b/src/host_io.zig
@@ -1605,6 +1605,10 @@ pub fn ttyTaken(shell_pid: libc.pid_t, master_fd: c_int) bool {
const exe = procExe(node.pid, &probe.exe) orelse {
if (offTty(node.pid, &probe.blob)) continue;
+ // Exiting (its exe gone, not a zombie yet), or not ours
+ // to read: outside the foreground group it holds
+ // nothing, as a killed background job does for a moment.
+ if (pgrp) |g| if (g != fg) continue;
return true;
};
if (!std.mem.eql(u8, exe, self_exe)) {