# io.github.libtmux.snapshot.PaneState.pid

- **Module:** io.github.libtmux.snapshot
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/snapshot/PaneState.java
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-snapshot-panestate-panestate-pid/

```
io.github.libtmux.snapshot.PaneState.pid() -> OptionalLong
```

the process id of the program running in it, or empty when tmux reports no process at all — never a literal zero, so a caller cannot mistake the sentinel for a real pid
