diff options
Diffstat (limited to 'runtime/session.zig')
| -rw-r--r-- | runtime/session.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/session.zig b/runtime/session.zig index 55b42b60..4172ba8d 100644 --- a/runtime/session.zig +++ b/runtime/session.zig @@ -24,7 +24,7 @@ //! - `sent()`: after each step's unit went to the clients. //! - `upgradeAsked()`: an Upgrade asked in the step, done (it execs). //! - `note(n)`: what the daemon says (an adopted shell, a client's -//! connection), onto its queue. +//! connection, a new daemon's hello taken), onto its queue. //! - `watched()`: the files it watches (a Restore stops watching them). //! - `restoring(nc)`, `restored(l)`: a Restore's new core, before it //! replaces the old one (its devices let go, what it is told of the @@ -139,8 +139,10 @@ pub fn Loop(comptime Frontend: type) type { } /// What the daemon says, onto the frontend's queue (once: its - /// reader is started by the first call). + /// reader is started by the first call); and a daemon started + /// since the last one died told the shells' masters it held. pub fn watch(l: *L) void { + if (daemon.relinked()) l.ptys.tellDaemon(); daemon.watch(l.fe, note); } |
