ControlClient.attachUnfenced
Attaches a control client to whatever server now answers this endpoint.
Source and package
- Qualified name
-
io.github .libtmux .control .Control Client .attach Unfenced - Package
- io.github.libtmux.control
- Declared in
- ControlClient
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/ControlClient.java
- @Operation(Kind
.LIFECYCLE ) public static ControlClient attachUnfenced( ServerConfig config, SessionId session)@Operation(Kind.LIFECYCLE ) public static ControlClient attachUnfenced( ServerConfig config, SessionId session, Duration timeout) -
Description#
Attaching is what makes tmux push
%output: a control client that never attaches is told about command replies and nothing else.This does not check which tmux process answered. A socket can be taken over by a new server that reuses the same session id.
io.github.libtmux.Server#controlattaches to the process a capture already named; prefer it.