# exit-unattached

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

> If enabled, the server will exit when there are no attached clients.

option tmux3.7c

If enabled, the server will exit when there are no attached clients.

* Scope

  server

* Type

  Flag (on or off)

* Default

  `off`

* Set

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

* Read

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

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

If enabled, the server will exit when there are no attached clients.

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

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

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

* Defined in

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

* 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-unattached)

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

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.Connection`](https://libtmux.org/en/go/latest/reference/tmux-connection/), [`tmux.Server.SetExitUnattached`](https://libtmux.org/en/go/latest/reference/tmux-server-setexitunattached/), [`tmux.ServerOptionValues.ExitUnattached`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-exitunattached/)
