Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

job Struct Reference

A struct represeting a job. More...

#include <proc.h>

Collaboration diagram for job:

Collaboration graph
[legend]

Data Fields

wchar_t * command
 The original command which led to the creation of this job.
process_tfirst_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_tio
 List of all IO redirections for this job.
jobnext
 A pointer to the next job in the job queue.
int flags
 Bitset containing information about the job.

Detailed Description

A struct represeting a job.

A job is basically a pipeline of one or more processes and a couple of flags.


Field Documentation

wchar_t* job::command
 

The original command which led to the creation of this job.

It is used for displaying messages about job status on the terminal.

int job::flags
 

Bitset containing information about the job.

A combination of the JOB_* constants.

int job::job_id
 

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.

struct termios job::tmodes
 

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.


The documentation for this struct was generated from the following file:
Generated on Sun Jan 13 02:53:42 2008 for fish by  doxygen 1.4.4