tmux_control:attach/3
Attach to an existing captured session from this exact endpoint origin. Performs I/O and waits for a same-connection identity probe. Uses attach-session with -E rather than creating a session or writing options. Configured hooks may change state; failure does not reverse their effects. The control client affects attached_count. Unexpected hook-generated reply blocks fail attachment and retire the client.
Source and package
- Qualified name
-
tmux_control: attach/3 - Declared in
tmux_control- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_control.erl
- attach(Server, Session, Options) -spec attach(tmux
_server: (), tmuxt _model: (), attachsession _options ()) -> {ok, t()} | {error, map()}. -
Description#
An attachment timeout requests cleanup. If cleanup cannot be proved within its finite deadline, the error includes a control handle for
close/1recovery. The supervised owner remains until native retirement. Close explicitly to observe cleanup, including when the parent endpoint is already closed.- Parameters
-
-
Server(tmux_server: ()) #t -
Options(attach_options ()) #
-