# server_client_suspend

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L417
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-cmd-detach-client-c-cmd_detach_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-detach-client.c#L68)
- [`window_client_do_detach`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_do_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L377)

## Calls

- [`proc_send`](/en/tmux/3.2a/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L426)
- [`tty_stop_tty`](/en/tmux/3.2a/reference/c-function-tty_stop_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L424)

## Referenced declarations

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