# server_client_dispatch_shell

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

```c
static int server_client_dispatch_shell(struct client *)
```

## Parameters

- `c` (`struct client *`)

## Called by

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

## Calls

- [`checkshell`](/en/tmux/latest/reference/c-function-checkshell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2593)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2592)
- [`proc_kill_peer`](/en/tmux/latest/reference/c-function-proc_kill_peer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2597)
- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2595)

## Referenced declarations

- [`_PATH_BSHELL`](/en/tmux/latest/reference/c-define-compat-h-_path_bshell/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`global_s_options`](/en/tmux/latest/reference/c-variable-global_s_options/) (attribute)
- [`MSG_SHELL`](/en/tmux/latest/reference/c-enum-msgtype-msg_shell/) (constant)
- [`client.peer`](/en/tmux/latest/reference/c-struct-client-peer/) (attribute)
