# job_error_callback

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

```c
static void job_error_callback(struct bufferevent *, short, void *)
```

## Parameters

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

## Calls

- [`job_free`](/en/tmux/3.2a/reference/c-function-job_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/job.c#L284)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/job.c#L279)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`job.cmd`](/en/tmux/3.2a/reference/c-struct-job-cmd/) (attribute)
- [`job.completecb`](/en/tmux/3.2a/reference/c-struct-job-completecb/) (attribute)
- [`job.data`](/en/tmux/3.2a/reference/c-struct-job-data/) (attribute)
- [`job.event`](/en/tmux/3.2a/reference/c-struct-job-event/) (attribute)
- [`JOB_CLOSED`](/en/tmux/3.2a/reference/c-struct-job-205337114025166232272351000356333041064124353014-job_closed/) (constant)
- [`JOB_DEAD`](/en/tmux/3.2a/reference/c-struct-job-205337114025166232272351000356333041064124353014-job_dead/) (constant)
- [`job.pid`](/en/tmux/3.2a/reference/c-struct-job-pid/) (attribute)
- [`job.state`](/en/tmux/3.2a/reference/c-struct-job-state/) (attribute)
