# job_transfer

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

```c
int job_transfer(struct job *job, pid_t *pid, char *tty, size_t ttylen)
```

## Parameters

- `job` (`struct job *`)
- `pid` (`pid_t *`)
- `tty` (`char *`)
- `ttylen` (`size_t`)

## Called by

- [`popup_make_pane`](/en/tmux/3.7c/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L433)

## Calls

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

## Referenced declarations

- [`job.cmd`](/en/tmux/3.7c/reference/c-struct-job-cmd/) (attribute)
- [`job.data`](/en/tmux/3.7c/reference/c-struct-job-data/) (attribute)
- [`job.event`](/en/tmux/3.7c/reference/c-struct-job-event/) (attribute)
- [`job.fd`](/en/tmux/3.7c/reference/c-struct-job-fd/) (attribute)
- [`job.freecb`](/en/tmux/3.7c/reference/c-struct-job-freecb/) (attribute)
- [`job`](/en/tmux/3.7c/reference/c-struct-job/) (struct)
- [`job.pid`](/en/tmux/3.7c/reference/c-struct-job-pid/) (attribute)
- [`job.tty`](/en/tmux/3.7c/reference/c-struct-job-tty/) (attribute)
