Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-java

PrivateDaemon

The tmux daemon Server#start() owns, and the directory it lives in.

Source and package
Qualified name
io.github.libtmux.PrivateDaemon
Package
io.github.libtmux
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/PrivateDaemon.java
class io.github.libtmux.PrivateDaemon

Description

The daemon runs in the foreground as a child of this JVM (-D), so its exit is observed on the process rather than inferred from a socket. Its environment has none of the caller's selectors and a TMUX_TMPDIR inside the directory, so a tmux started from a pane without a socket lands under the directory too, where #close() looks for it.

Members8 members

  • close Ends the daemon, then any server left under the directory, and removes the directory.
  • config The configuration of a client for this daemon.
  • deleteTree
  • environment The environment the daemon gets: the caller's, without anything that selects a server.
  • reap The sweep over the processes it is given, so a test can describe them without starting any.
  • reapAbandoned Ends every tmux server under root whose owning JVM is gone, and answers how many ended. Runs while other runs use the same root, so it may only touch abandoned servers.
  • start Starts a daemon and waits until it answers.
  • startOf When a process started, read the same way by every JVM on the machine.
Esc
Search in

Type to search.

Reference previewOpen reference