# server_client_suspend

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

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

## Parameters

- `c` (`struct client *`)

## Called by

- [`cmd_detach_client_exec`](/en/tmux/latest/reference/c-function-cmd-detach-client-c-cmd_detach_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-detach-client.c#L69)
- [`window_client_do_detach`](/en/tmux/latest/reference/c-function-window-client-c-window_client_do_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L353)

## Calls

- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L553)
- [`tty_stop_tty`](/en/tmux/latest/reference/c-function-tty_stop_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L551)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_SUSPENDED`](/en/tmux/latest/reference/c-define-tmux-h-client_suspended/) (constant)
- [`CLIENT_UNATTACHEDFLAGS`](/en/tmux/latest/reference/c-define-tmux-h-client_unattachedflags/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`MSG_SUSPEND`](/en/tmux/latest/reference/c-enum-msgtype-msg_suspend/) (constant)
- [`client.peer`](/en/tmux/latest/reference/c-struct-client-peer/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
