open_server
Source and package
- Module
- LibTmux
- Package
- LibTmux
- Source
- src/lifecycle.jl
-
Methods#
Start an isolated foreground tmux daemon with an empty configuration and a unique private socket directory. Validate its reported PID against the spawned child before returning an
OwnedServer. Environment entries are copied and validated; inheritedTMUXandTMUX_PANEare removed. No ambient server is contacted. The temporary directory must permit a socket path under 104 bytes.open_server(; tmux="tmux", env=ENV, timeout=0.9, cancel=nothing)timeoutbounds startup using a monotonic clock;cancelapplies only until startup finishes. Both failure paths reap the daemon. Daemon stderr retains at most 64 KiB; startup and cleanup errors indicate truncated diagnostics. Close the returned handle explicitly, or usewith_serverfor scoped ownership.Discussed in Troubleshooting