aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/jobs.h
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2010-06-29 22:37:45 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2010-06-29 22:37:45 +0000
commited4c3b5f8604d5e87179949606c19403e7af71c2 (patch)
treefec6cbce2d09b1054b1fc671f8093cc73e9c8694 /bin/sh/jobs.h
parent4201341ff701cdb7ffbc086990f29f97af676179 (diff)
Notes
Diffstat (limited to 'bin/sh/jobs.h')
-rw-r--r--bin/sh/jobs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h
index c75c35355121b..8bc10821a02bf 100644
--- a/bin/sh/jobs.h
+++ b/bin/sh/jobs.h
@@ -68,6 +68,7 @@ struct job {
char used; /* true if this entry is in used */
char changed; /* true if status has changed */
char foreground; /* true if running in the foreground */
+ char remembered; /* true if $! referenced */
#if JOBS
char jobctl; /* job running under job control */
struct job *next; /* job used after this one */
@@ -81,7 +82,6 @@ enum {
SHOWJOBS_PGIDS /* PID of the group leader only */
};
-extern pid_t backgndpid; /* pid of last background process */
extern int job_warning; /* user was warned about stopped jobs */
extern int in_waitcmd; /* are we in waitcmd()? */
extern int in_dowait; /* are we in dowait()? */
@@ -98,6 +98,8 @@ struct job *makejob(union node *, int);
pid_t forkshell(struct job *, union node *, int);
int waitforjob(struct job *, int *);
int stoppedjobs(void);
+int backgndpidset(void);
+pid_t backgndpidval(void);
char *commandtext(union node *);
#if ! JOBS