Server.killServer
Ends the tmux server and every session on it.
Source and package
- Qualified name
-
io.github .libtmux .Server. kill Server - Package
- io.github.libtmux
- Declared in
Server- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- Other languages
- Perlmethod Erlangfunction PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua TypeScriptRustGoC#C++SwiftKotlinScala OCaml F# Clojure
- @Operation(Kind
.MUTATION ) public void killServer()@Operation(Kind.MUTATION ) public void killServer(Duration timeout) -
Description#
Deliberately explicit and deliberately not what
#close()does: closing a client is not a reason to end everyone else's sessions.Killing a server that has already gone is not a failure. Which is harder to detect than it sounds: tmux answers a doomed request with
no server runningmost of the time, but withserver exited unexpectedlywhen it reaches a socket whose server is still exiting — on every release from 3.3a onwards, and on one in five attempts on 3.7. So the postcondition is checked rather than the wording, which has changed before and says nothing a second look cannot answer better.
tmux command#
The tmux commands behind killServer.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss killServer.
- 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 |
| Go | tmux |
| 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#.