# exit-empty

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/

> If enabled (the default), the server will exit when there are no active sessions.

option tmux3.7c

If enabled (the default), the server will exit when there are no active sessions.

* Scope

  server

* Type

  Flag (on or off)

* Default

  `on`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-s exit-empty value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-s exit-empty`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/#description)

If enabled (the default), the server will exit when there are no active sessions.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/exit-empty/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/#source)

* Defined in

  [`options-table.c:375`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L375)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.7c/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-exit-empty)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/exit-empty/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.Server`](https://libtmux.org/en/go/latest/reference/tmux-server/), [`tmux.Server.ListKeys`](https://libtmux.org/en/go/latest/reference/tmux-server-listkeys/), [`tmux.Server.SetExitEmpty`](https://libtmux.org/en/go/latest/reference/tmux-server-setexitempty/), [`tmux.Server.Start`](https://libtmux.org/en/go/latest/reference/tmux-server-start/), [`tmux.ServerOptionValues.ExitEmpty`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-exitempty/)
