diff options
Diffstat (limited to 'dev/Ptys.zig')
| -rw-r--r-- | dev/Ptys.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/Ptys.zig b/dev/Ptys.zig index 97c5cfde..16a31939 100644 --- a/dev/Ptys.zig +++ b/dev/Ptys.zig @@ -156,6 +156,12 @@ pub fn signal(p: *Ptys, id: pardes.Pane.Id, sig: pardes.PtySignal) void { if (p.slots[id.index()]) |pt| if (!pt.cmd.exited) host_io.signalTty(pt.pid, pt.fd, sig, pt.cmd.watched); } +/// A daemon started since the last one died: every master told it again, +/// as `spawn` tells the first (host_io.forkShell). +pub fn tellDaemon(p: *const Ptys) void { + for (p.slots) |slot| if (slot) |pt| daemon.pty(pt.pid, pt.fd); +} + /// The pane is gone, or its shell is: its reader out of the queue first /// (which lets go one waiting for room there) and canceled; its pty hung /// up, which the kernel passes on to the shell as SIGHUP; the daemon's |
