tmux_server:stop_owned/1
Stop the daemon and endpoint associated with a ownership/0 token. Performs I/O and returns ok only after endpoint/client/helper retirement and namespace cleanup are proved. It never sends kill-server to a socket path.
Source and package
- Qualified name
-
tmux_server: stop _owned/1 - Declared in
tmux_server- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_server.erl
- Other languages
- Perlmethod PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua TypeScriptRustGoJavaC#C++SwiftKotlinScala OCaml F# Clojure
-
Description#
A replaced socket/directory or unexpected directory contents are preserved and return
cleanup_incompletewith process and namespace details. A supervised tombstone retains uncertain cleanup; call again to inspect/retry after external repair. Filesystem identity checks are observations, not atomic reservations against another trusted process replacing a path during unlink.Successful stop is idempotent during the 60-second token retention period. After token expiry or application shutdown, returns
ownership_expired. Stop explicitly before application shutdown when the caller needs a verified cleanup result. OTP application shutdown itself does not prove native cleanup. Incomplete shutdown writes a private recovery report outside the owned socket directory and logs its location or write failure; no automatic recovery runs.
Guides#
Pages that discuss stop_owned/1.
In other ports#
Shut the tmux server down
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| 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#.