# io.github.libtmux.Pane.Pane.pid

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Pane.java#L164
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane-pid/

```
io.github.libtmux.Pane.Pane.pid() -> OptionalLong
```

The process id of the program running in the pane, captured at the time of the read this handle came from.

Empty means tmux reported no process — never a literal {@code 0}, which would be
indistinguishable from a real pid. That covers two different situations this capture cannot
tell apart: a pane that never ran one ({@link SplitSpec.Builder#empty()}) and, from tmux 3.8, a
pane that ran one and it has since died. Before 3.8 a dead pane still reports its stale pid.
{@link #dead()} is the live read that tells a caller which.
