summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-05-31 12:31:23 +0000
committertjr <tjr@FreeBSD.org>2002-05-31 12:31:23 +0000
commit7e9561b97a5c247e88463093d90afcc38871d08d (patch)
tree1a0053a7c3d18f679caa4dd9d107aad989df7a88 /bin/sh/jobs.h
parente6fa9b9e922913444c2e6b2b58bf3de5eaed868d (diff)
downloadFreeBSD-src-7e9561b97a5c247e88463093d90afcc38871d08d.zip
FreeBSD-src-7e9561b97a5c247e88463093d90afcc38871d08d.tar.gz
Instead of keeping just the jobid of the most recently bg'd or fg'd job,
keep a linked list of the jobs, most recently used first. This is required to support the idea of `previous job', and to allow the jobs fg and bg default to be correct according to POSIX.
Diffstat (limited to 'bin/sh/jobs.h')
-rw-r--r--bin/sh/jobs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h
index e73c930..2dba4e1 100644
--- a/bin/sh/jobs.h
+++ b/bin/sh/jobs.h
@@ -73,6 +73,7 @@ struct job {
char changed; /* true if status has changed */
#if JOBS
char jobctl; /* job running under job control */
+ struct job *next; /* job used after this one */
#endif
};
OpenPOWER on IntegriCloud