# client_dispatch_wait

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

```c
static void client_dispatch_wait(struct imsg *)
```

## Parameters

- `imsg` (`struct imsg *`)

## Called by

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

## Calls

- [`client_dispatch_exit_message`](/en/tmux/latest/reference/c-function-client-c-client_dispatch_exit_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L655)
- [`client_exec`](/en/tmux/latest/reference/c-function-client-c-client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L688)
- [`client_exit`](/en/tmux/latest/reference/c-function-client-c-client_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L657)
- [`fatal`](/en/tmux/latest/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L645)
- [`fatalx`](/en/tmux/latest/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L661)
- [`file_read_cancel`](/en/tmux/latest/reference/c-function-file_read_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L703)
- [`file_read_open`](/en/tmux/latest/reference/c-function-file_read_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L698)
- [`file_write_close`](/en/tmux/latest/reference/c-function-file_write_close/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L714)
- [`file_write_data`](/en/tmux/latest/reference/c-function-file_write_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L711)
- [`file_write_open`](/en/tmux/latest/reference/c-function-file_write_open/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L706)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L681)
- [`proc_exit`](/en/tmux/latest/reference/c-function-proc_exit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L674)
- [`proc_send`](/en/tmux/latest/reference/c-function-proc_send/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L664)

## Other function references

- [`client_file_check_cb`](/en/tmux/latest/reference/c-function-client-c-client_file_check_cb/) (function)

## Referenced declarations

- [`client_attached`](/en/tmux/latest/reference/c-variable-client-c-client_attached/) (attribute)
- [`CLIENT_CONTROL`](/en/tmux/latest/reference/c-define-tmux-h-client_control/) (constant)
- [`client_exitflag`](/en/tmux/latest/reference/c-variable-client-c-client_exitflag/) (attribute)
- [`client_exitval`](/en/tmux/latest/reference/c-variable-client-c-client_exitval/) (attribute)
- [`client_flags`](/en/tmux/latest/reference/c-variable-client-c-client_flags/) (attribute)
- [`client_peer`](/en/tmux/latest/reference/c-variable-client-c-client_peer/) (attribute)
- [`client_proc`](/en/tmux/latest/reference/c-variable-client-c-client_proc/) (attribute)
- [`MSG_DETACH`](/en/tmux/latest/reference/c-enum-msgtype-msg_detach/) (constant)
- [`MSG_DETACHKILL`](/en/tmux/latest/reference/c-enum-msgtype-msg_detachkill/) (constant)
- [`MSG_EXIT`](/en/tmux/latest/reference/c-enum-msgtype-msg_exit/) (constant)
- [`MSG_EXITED`](/en/tmux/latest/reference/c-enum-msgtype-msg_exited/) (constant)
- [`MSG_EXITING`](/en/tmux/latest/reference/c-enum-msgtype-msg_exiting/) (constant)
- [`MSG_FLAGS`](/en/tmux/latest/reference/c-enum-msgtype-msg_flags/) (constant)
- [`MSG_OLDSTDERR`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstderr/) (constant)
- [`MSG_OLDSTDIN`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstdin/) (constant)
- [`MSG_OLDSTDOUT`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstdout/) (constant)
- [`MSG_READ_CANCEL`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_cancel/) (constant)
- [`MSG_READ_OPEN`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_open/) (constant)
- [`MSG_READY`](/en/tmux/latest/reference/c-enum-msgtype-msg_ready/) (constant)
- [`MSG_RESIZE`](/en/tmux/latest/reference/c-enum-msgtype-msg_resize/) (constant)
- [`MSG_SHELL`](/en/tmux/latest/reference/c-enum-msgtype-msg_shell/) (constant)
- [`MSG_SHUTDOWN`](/en/tmux/latest/reference/c-enum-msgtype-msg_shutdown/) (constant)
- [`MSG_VERSION`](/en/tmux/latest/reference/c-enum-msgtype-msg_version/) (constant)
- [`MSG_WRITE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write/) (constant)
- [`MSG_WRITE_CLOSE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_close/) (constant)
- [`MSG_WRITE_OPEN`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_open/) (constant)
- [`pledge`](/en/tmux/latest/reference/c-define-compat-h-pledge/) (constant)
- [`PROTOCOL_VERSION`](/en/tmux/latest/reference/c-define-tmux-protocol-h-protocol_version/) (constant)
- [`shell_command`](/en/tmux/latest/reference/c-variable-shell_command/) (attribute)
