kill_server
Source and package
- Qualified name
-
LibTmux. kill _server - Module
- LibTmux
- Package
- LibTmux
- Source
- src/operations.jl
-
Methods
End the tmux daemon at
server, with every session, window and pane in it, and return itsCommandResult. Nothing is sent unlessconfirm=true: the call raisesArgumentErrorwithout it, because a borrowed endpoint is often the caller's own server and LibTmux never destroys one implicitly. An endpoint that names no socket is refused even when confirmed, because tmux would then choose the serverTMUXnames or thedefaultsocket; name the socket withsocket_pathorsocket_name. The refusals send no command.kill_server(server; confirm=false, timeout=5.0, cancel=nothing, strict=false)An endpoint with no daemon has nothing to end, and the call returns an empty successful result. Only this call, never
closeorwith_server, sendskill-server. End a server you own withclose(owned)instead, which also reaps the daemon and removes its directory. Failures after submission may have remote effects and are never retried.Examples
using LibTmuxwith_server() do serverborrowed = Server(; socket_path=server.socket_path)new_session(borrowed; name="work", command=["/bin/cat"])kill_server(borrowed; confirm=true)end- Parameters
-
Recorded calls
source callsThe Julia reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.kill_server.
Guides
task materialPages that discuss kill_server.