From f73dda092b33638d2d5e9c35375f687a607b5403 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 13 Nov 2001 17:56:06 +0000 Subject: Imported from ../bash-2.05a.tar.gz. --- jobs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'jobs.h') diff --git a/jobs.h b/jobs.h index b89d0975..fe004ca1 100644 --- a/jobs.h +++ b/jobs.h @@ -42,6 +42,11 @@ of processes that are piped together. The first process encountered is the group leader. */ +/* Values for the `running' field of a struct process. */ +#define PS_DONE 0 +#define PS_RUNNING 1 +#define PS_STOPPED 2 + /* Each child of the shell is remembered in a STRUCT PROCESS. A chain of such structures is a pipeline. The chain is circular. */ typedef struct process { @@ -78,7 +83,7 @@ typedef struct job { int flags; /* Flags word: J_NOTIFIED, J_FOREGROUND, or J_JOBCONTROL. */ #if defined (JOB_CONTROL) COMMAND *deferred; /* Commands that will execute when this job is done. */ - VFunction *j_cleanup; /* Cleanup function to call when job marked JDEAD */ + sh_vptrfunc_t *j_cleanup; /* Cleanup function to call when job marked JDEAD */ PTR_T cleanarg; /* Argument passed to (*j_cleanup)() */ #endif /* JOB_CONTROL */ } JOB; -- cgit v1.2.1