# server_client_lost

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

```c
void server_client_lost(struct client *c)
```

## Parameters

- `c` (`struct client *`)

## Called by

- [`server_client_dispatch`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2216)
- [`server_send_exit`](/en/tmux/3.7c/reference/c-function-server-c-server_send_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L319)
- [`tty_read_callback`](/en/tmux/3.7c/reference/c-function-tty-c-tty_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L183)

## Calls

- [`control_stop`](/en/tmux/3.7c/reference/c-function-control_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L464)
- [`environ_free`](/en/tmux/3.7c/reference/c-function-environ_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L494)
- [`file_fire_done`](/en/tmux/3.7c/reference/c-function-file_fire_done/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L448)
- [`format_lost_client`](/en/tmux/3.7c/reference/c-function-format_lost_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L493)
- [`input_cancel_requests`](/en/tmux/3.7c/reference/c-function-input_cancel_requests/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L475)
- [`key_bindings_unref_table`](/en/tmux/3.7c/reference/c-function-key_bindings_unref_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L483)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L456)
- [`notify_client`](/en/tmux/3.7c/reference/c-function-notify_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L460)
- [`proc_remove_peer`](/en/tmux/3.7c/reference/c-function-proc_remove_peer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L496)
- [`recalculate_sizes`](/en/tmux/3.7c/reference/c-function-recalculate_sizes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L509)
- [`server_add_accept`](/en/tmux/3.7c/reference/c-function-server_add_accept/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L507)
- [`server_check_unattached`](/en/tmux/3.7c/reference/c-function-server_check_unattached/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L510)
- [`server_client_attached_lost`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_attached_lost/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L459)
- [`server_client_clear_overlay`](/en/tmux/3.7c/reference/c-function-server_client_clear_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L442)
- [`server_client_unref`](/en/tmux/3.7c/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L505)
- [`server_update_socket`](/en/tmux/3.7c/reference/c-function-server_update_socket/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L511)
- [`status_free`](/en/tmux/3.7c/reference/c-function-status_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L474)
- [`status_message_clear`](/en/tmux/3.7c/reference/c-function-status_message_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L444)
- [`status_prompt_clear`](/en/tmux/3.7c/reference/c-function-status_prompt_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L443)
- [`tty_free`](/en/tmux/3.7c/reference/c-function-tty_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L466)
- [`tty_term_free_list`](/en/tmux/3.7c/reference/c-function-tty_term_free_list/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L472)

## Referenced declarations

- [`client.click_timer`](/en/tmux/3.7c/reference/c-struct-client-click_timer/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`CLIENT_ATTACHED`](/en/tmux/3.7c/reference/c-define-tmux-h-client_attached/) (constant)
- [`CLIENT_CONTROL`](/en/tmux/3.7c/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_DEAD`](/en/tmux/3.7c/reference/c-define-tmux-h-client_dead/) (constant)
- [`CLIENT_TERMINAL`](/en/tmux/3.7c/reference/c-define-tmux-h-client_terminal/) (constant)
- [`client.clipboard_panes`](/en/tmux/3.7c/reference/c-struct-client-clipboard_panes/) (attribute)
- [`client.cwd`](/en/tmux/3.7c/reference/c-struct-client-cwd/) (attribute)
- [`client_window.entry`](/en/tmux/3.7c/reference/c-struct-client_window-entry/) (attribute)
- [`client.environ`](/en/tmux/3.7c/reference/c-struct-client-environ/) (attribute)
- [`client_file.error`](/en/tmux/3.7c/reference/c-struct-client_file-error/) (attribute)
- [`client.fd`](/en/tmux/3.7c/reference/c-struct-client-fd/) (attribute)
- [`client.files`](/en/tmux/3.7c/reference/c-struct-client-files/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`client.keytable`](/en/tmux/3.7c/reference/c-struct-client-keytable/) (attribute)
- [`client.message_string`](/en/tmux/3.7c/reference/c-struct-client-message_string/) (attribute)
- [`client.message_timer`](/en/tmux/3.7c/reference/c-struct-client-message_timer/) (attribute)
- [`client.out_fd`](/en/tmux/3.7c/reference/c-struct-client-out_fd/) (attribute)
- [`client.peer`](/en/tmux/3.7c/reference/c-struct-client-peer/) (attribute)
- [`client.prompt_buffer`](/en/tmux/3.7c/reference/c-struct-client-prompt_buffer/) (attribute)
- [`client.prompt_saved`](/en/tmux/3.7c/reference/c-struct-client-prompt_saved/) (attribute)
- [`client.prompt_string`](/en/tmux/3.7c/reference/c-struct-client-prompt_string/) (attribute)
- [`client.repeat_timer`](/en/tmux/3.7c/reference/c-struct-client-repeat_timer/) (attribute)
- [`client.term_caps`](/en/tmux/3.7c/reference/c-struct-client-term_caps/) (attribute)
- [`client.term_name`](/en/tmux/3.7c/reference/c-struct-client-term_name/) (attribute)
- [`client.term_ncaps`](/en/tmux/3.7c/reference/c-struct-client-term_ncaps/) (attribute)
- [`client.term_type`](/en/tmux/3.7c/reference/c-struct-client-term_type/) (attribute)
- [`client.title`](/en/tmux/3.7c/reference/c-struct-client-title/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`client.ttyname`](/en/tmux/3.7c/reference/c-struct-client-ttyname/) (attribute)
- [`client.windows`](/en/tmux/3.7c/reference/c-struct-client-windows/) (attribute)
