# server_check_unattached

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L481
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-server_check_unattached/

```c
void server_check_unattached(void)
```

## Called by

- [`server_client_lost`](/en/tmux/3.7c/reference/c-function-server_client_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L510)
- [`server_client_set_session`](/en/tmux/3.7c/reference/c-function-server_client_set_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L429)

## Calls

- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L493)
- [`session_destroy`](/en/tmux/3.7c/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L509)
- [`session_group_contains`](/en/tmux/3.7c/reference/c-function-session_group_contains/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L499)

## Other function references

- [`session_group_count`](/en/tmux/3.7c/reference/c-function-session_group_count/) (function)

## Referenced by

- [`server_client_detach`](/en/tmux/3.7c/reference/c-function-server_client_detach/) (function)

## Referenced declarations

- [`session.attached`](/en/tmux/3.7c/reference/c-struct-session-attached/) (attribute)
- [`session.options`](/en/tmux/3.7c/reference/c-struct-session-options/) (attribute)
