Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/lifecycle_kill.go
Other languages
PythonRuby Lua TypeScriptRustJava.NETC++Swift
Kill ( ctx : context.Context ) → error
method [source]
method [source]
Kill

Kill terminates the configured tmux server and all of its sessions, windows, panes, and clients. After a completed failed kill, a liveness probe makes repeated calls harmless when no daemon answers. Transport or context errors can be delivery-ambiguous; no rollback is attempted.

tmux leaves the socket file in place, so cleanup that waits for the path to disappear does not finish. Use Server.IsAlive to observe the daemon, and remove a socket path this process chose itself.

Discussed in Socket and servers

In other ports Shut the tmux server down

0 declared, 0 inherited

Esc

Type to search.