Skip to main content

Module daemon

Module daemon 

Source
Expand description

Long-lived shell daemon and its JSON-RPC client. The transport is a Unix-domain socket on Unix and a named pipe on Windows.

Modules§

exit
Why a daemon process stopped, recorded beside its socket.
transport
Control-plane transport: Unix-domain sockets on Unix, named pipes on Windows.

Structs§

ControlServer
Stable control plane. Each logical session is owned by a separate guardian process, so restarting this process does not close any PTY master.
DaemonClient
Control-plane client used by the CLI and reconnection tests.
DaemonServer
Long-lived JSON-RPC shell owner listening on the daemon transport.
DaemonShellRuntime
Shell runtime backed by a winxd Unix-domain socket.
DaemonSocketCandidate
One socket location that may contain a Winx control daemon.
HelloResult
JournalRead
PruneResult
SessionInfo

Enums§

DaemonProcessRole
Process role advertised during daemon negotiation.

Constants§

BUILD_IDENTITY_CAPABILITY
COMPACT_ACTION_OUTPUT_CAPABILITY
GENERATION_BOUND_ACTIONS_CAPABILITY
MAX_FRAME_BYTES
PROCESS_SHUTDOWN_CAPABILITY
The process exits cleanly on a winx.shutdown request; Windows has no SIGTERM, so this is the only graceful stop there.
PROTOCOL_MAJOR
PROTOCOL_MINOR
TYPED_ACTION_RESULT_CAPABILITY

Functions§

default_socket_path
Resolve the canonical control-daemon socket without creating filesystem state.
socket_candidates
Enumerate canonical and legacy socket locations for diagnostics.