Server.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.
Source and package
-
Description#
tmux leaves the socket file in place, so cleanup that waits for the path to disappear does not finish. Use
Server.IsAliveto observe the daemon, and remove a socket path this process chose itself.- Parameters
tmux command#
The tmux commands behind Kill.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss Kill.
- Examples
- Topics
In other ports#
Shut the tmux server down
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Erlang | tmux Requires the ownership token for a library-owned daemon. Closing a borrowed endpoint preserves its daemon. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Java | io |
| Clojure | libtmux |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Client.close releases transport resources. The public client API does not terminate a borrowed tmux daemon. |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in Lua, PowerShell, Julia, Elixir, Common Lisp or F#.