# pane-died

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/

> Run when the program running in a pane exits, but remain-on-exit is on so the pane has not closed.

hook tmux3.2a

Run when the program running in a pane exits, but remain-on-exit is on so the pane has not closed.

* Scope

  window, pane

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `pane-died command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `pane-died`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/#description)

Run when the program running in a pane exits, but [`remain-on-exit`](https://libtmux.org/en/tmux/3.2a/catalog/options/remain-on-exit/) is on so the pane has not closed.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/pane-died/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/#source)

* Defined in

  [`options-table.c:1137`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L1137)

* Fired from

  * [`server-fn.c:343`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L343) in `notify_pane`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/), [`notify_pane`](https://libtmux.org/en/tmux/3.2a/reference/c-function-notify_pane/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#hooks-pane-died)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-died/#used-by)

Library documentation that names this hook.

* Rust

  [`options.generated.PANE_DIED`](https://libtmux.org/en/rs/latest/reference/options-generated-pane_died/)

* Go

  [`tmux.PaneHookValues.PaneDied`](https://libtmux.org/en/go/latest/reference/tmux-panehookvalues-panedied/), [`tmux.WindowHookValues.PaneDied`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-panedied/)
