Builder.running
Runs a command, which closes the pane when it exits unless #keepOnExit() is set.
Source and package
- Qualified name
-
io.github .libtmux .Split Spec .Builder. running - Package
- io.github.libtmux
- Declared in
Builder- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/SplitSpec.java
-
Description#
A command that exits fast enough races
Pane#split()'s own read-back: tmux can destroy the pane before the second listing that confirms it runs, and the split then throwsTargetGoneExceptioneven though tmux made the pane and ran the command in it.#keepOnExit()removes the race by keeping the pane there to be read.tmux also reports the pane before its process has become this command, so a read at once can still see the process about to exec it: wait for the command with
java.time.Duration).