holder

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 15 Imported by: 0

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

View Source
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

func Main(version string, args []string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL