#include <proc.h>
Collaboration diagram for job:

Data Fields | |
| wchar_t * | command |
| The original command which led to the creation of this job. | |
| process_t * | first_process |
| A linked list of all the processes in this job. | |
| pid_t | pgid |
| process group ID for the process group that this job is running in. | |
| termios | tmodes |
| The saved terminal modes of this job. | |
| int | job_id |
| The job id of the job. | |
| io_data_t * | io |
| List of all IO redirections for this job. | |
| job * | next |
| A pointer to the next job in the job queue. | |
| int | flags |
| Bitset containing information about the job. | |
A job is basically a pipeline of one or more processes and a couple of flags.
|
|
The original command which led to the creation of this job. It is used for displaying messages about job status on the terminal. |
|
|
Bitset containing information about the job. A combination of the JOB_* constants. |
|
|
The job id of the job. This is a small integer that is a unique identifier of the job within this shell, and is used e.g. in process expansion. |
|
|
The saved terminal modes of this job. This needs to be saved so that we can restore the terminal to the same state after temporarily taking control over the terminal when a job stops. |
1.4.4