Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function LibTmux.jl

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 its CommandResult. Nothing is sent unless confirm=true: the call raises ArgumentError without 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 server TMUX names or the default socket; name the socket with socket_path or socket_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 close or with_server, sends kill-server. End a server you own with close(owned) instead, which also reaps the daemon and removes its directory. Failures after submission may have remote effects and are never retried.

Examples

using LibTmux
with_server() do server
borrowed = Server(; socket_path=server.socket_path)
new_session(borrowed; name="work", command=["/bin/cat"])
kill_server(borrowed; confirm=true)
end
Parameters

Recorded calls

source calls
No call edges in the Julia model.

The 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 material

Pages that discuss kill_server.

Esc
Search in

Type to search.

Reference previewOpen reference