# job_check_died

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

```c
void job_check_died(pid_t pid, int status)
```

## Parameters

- `pid` (`pid_t`)
- `status` (`int`)

## Called by

- [`server_child_exited`](/en/tmux/latest/reference/c-function-server-c-server_child_exited/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L506)
- [`server_child_stopped`](/en/tmux/latest/reference/c-function-server-c-server_child_stopped/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server.c#L527)

## Calls

- [`job_free`](/en/tmux/latest/reference/c-function-job_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L381)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L374)

## Referenced declarations

- [`all_jobs`](/en/tmux/latest/reference/c-variable-job-c-all_jobs/) (attribute)
- [`job.cmd`](/en/tmux/latest/reference/c-struct-job-cmd/) (attribute)
- [`job.completecb`](/en/tmux/latest/reference/c-struct-job-completecb/) (attribute)
- [`job.entry`](/en/tmux/latest/reference/c-struct-job-entry/) (attribute)
- [`JOB_CLOSED`](/en/tmux/latest/reference/c-struct-job-205337114025166232272351000356333041064124353014-job_closed/) (constant)
- [`JOB_DEAD`](/en/tmux/latest/reference/c-struct-job-205337114025166232272351000356333041064124353014-job_dead/) (constant)
- [`job.pid`](/en/tmux/latest/reference/c-struct-job-pid/) (attribute)
- [`job.state`](/en/tmux/latest/reference/c-struct-job-state/) (attribute)
- [`job.status`](/en/tmux/latest/reference/c-struct-job-status/) (attribute)
