summaryrefslogtreecommitdiff
path: root/dev/host_io.zig
diff options
context:
space:
mode:
Diffstat (limited to 'dev/host_io.zig')
-rw-r--r--dev/host_io.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/host_io.zig b/dev/host_io.zig
index 0efb37fd..a22bf5ce 100644
--- a/dev/host_io.zig
+++ b/dev/host_io.zig
@@ -1105,6 +1105,8 @@ pub fn takeExits(core: *pardes.Pardes, ptys: anytype, ctx: anytype, comptime clo
for (ptys, 0..) |*slot, id| {
const pt = slotPty(slot) orelse continue;
if (!pt.cmd.watched or !pt.cmd.due()) continue;
+ // Its output read and not yet applied (a host whose reader counts).
+ if (comptime @hasDecl(@TypeOf(ctx.*), "unapplied")) if (!pt.cmd.eof and ctx.unapplied(id)) continue;
pt.cmd.told = true;
const eof = pt.cmd.eof;
core.update(.{ .exited = .{ .pane = .at(id), .status = pt.cmd.status } });