Documentation
¶
Overview ¶
Package holder runs one session in its own process, which is the whole of how sessions outlive the daemon: the pty master, the child, and the scrollback ring live here, and the daemon holds nothing a restart can lose. The daemon speaks holdwire over the unix socket in the holder's directory; the engine underneath is session.Session, unchanged.
Index ¶
Constants ¶
const SocketName = "holder.sock"
SocketName is the holder's listener, beside session.json and holder.log in the holder's directory.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
Main is the `flue _holder` entry point: it parses the holder's one flag and serves. The ready pipe rides on fd 3 when the spawner passed one — the contract SpawnRemote holds up from the other side.
func Serve ¶
func Serve(dir, version string, ready io.WriteCloser) error
Serve owns one session for the life of the process. It returns after a close request, after self-reap, or on a listener error. ready, when non-nil, receives one byte once the socket is listening — the spawn handshake's "you may dial now".
Types ¶
This section is empty.