io.github.libtmux.Server.Server.killServer
- Module
- io.github.libtmux.Server
- Declared in
- Server
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- Other languages
- PythonRuby Lua TypeScriptRustGo.NETC++Swift
-
Ends the tmux server and every session on it.
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.- Parameters
-
-
timeout ( Duration ) – how long to allow for each of the two commands
-
In other ports Shut the tmux server down
- Python
libtmux.Server.kill - Ruby
LibTmux::Server#kill - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
server.Server.kill - Rust
server.Server.kill - Go
tmux.Server.Kill - .NET
LibTmux.Server.KillAsync - C++
libtmux::Server::kill - Swift
Server.killServer()
0 declared, 0 inherited