diff options
author | tjr <tjr@FreeBSD.org> | 2002-07-18 10:22:42 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-07-18 10:22:42 +0000 |
commit | 9e3506ab60a88bcd2d61b3fee95a0b1882d6ee93 (patch) | |
tree | 74ccd48d52d4ea400db890a54bd310ec6d9803fa /bin/sh/jobs.h | |
parent | 60af0dcffab9e488729039c35d7ebff3a5b7533d (diff) | |
download | FreeBSD-src-9e3506ab60a88bcd2d61b3fee95a0b1882d6ee93.zip FreeBSD-src-9e3506ab60a88bcd2d61b3fee95a0b1882d6ee93.tar.gz |
Avoid using ints or shorts to store process id's, use pid_t instead.
The pgrp member of struct job was declared as a short and could not store
every possible process group ID value, the rest of them were benign because
pid_t happens to be an int.
Diffstat (limited to 'bin/sh/jobs.h')
-rw-r--r-- | bin/sh/jobs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h index 5bc32eb..53c0ba0 100644 --- a/bin/sh/jobs.h +++ b/bin/sh/jobs.h @@ -67,7 +67,7 @@ struct job { struct procstat ps0; /* status of process */ struct procstat *ps; /* status or processes when more than one */ short nprocs; /* number of processes */ - short pgrp; /* process group of this job */ + pid_t pgrp; /* process group of this job */ char state; /* true if job is finished */ char used; /* true if this entry is in used */ char changed; /* true if status has changed */ @@ -92,7 +92,7 @@ void showjobs(int, int, int); int waitcmd(int, char **); int jobidcmd(int, char **); struct job *makejob(union node *, int); -int forkshell(struct job *, union node *, int); +pid_t forkshell(struct job *, union node *, int); int waitforjob(struct job *, int *); int stoppedjobs(void); char *commandtext(union node *); |