# control_error_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L537
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-control-c-control_error_callback/

```c
static void control_error_callback(struct bufferevent *bufev, short what, void *data)
```

## Parameters

- `bufev` (`struct bufferevent *`)
- `what` (`short`)
- `data` (`void *`)

## Referenced by

- [`control_start`](/en/tmux/3.2a/reference/c-function-control_start/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`CLIENT_EXIT`](/en/tmux/3.2a/reference/c-define-tmux-h-client_exit/) (constant)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
