diff options
author | kris <kris@FreeBSD.org> | 2002-06-16 17:03:53 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-06-16 17:03:53 +0800 |
commit | 9672beca009ec4a460ebca0061e258f0c41c0170 (patch) | |
tree | abb7d06e4579115adba7c1d1f99dbfacc8d6a149 /shells/44bsd-csh | |
parent | f4b2c221c64457a36c9c4800109c691806bc8217 (diff) | |
download | freebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.tar.gz freebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.tar.zst freebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.zip |
Fix build on -current.
Submitted by: mike
Diffstat (limited to 'shells/44bsd-csh')
-rw-r--r-- | shells/44bsd-csh/files/patch-proc.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/shells/44bsd-csh/files/patch-proc.c b/shells/44bsd-csh/files/patch-proc.c new file mode 100644 index 000000000000..d938524ed34f --- /dev/null +++ b/shells/44bsd-csh/files/patch-proc.c @@ -0,0 +1,50 @@ +$FreeBSD$ + +--- proc.c Tue Jun 4 20:07:29 2002 ++++ proc.c Tue Jun 4 20:14:09 2002 +@@ -89,13 +89,13 @@ + int pid; + extern int insource; + int save_errno = errno; +- union wait w; ++ int w; + int jobflags; + struct rusage ru; + + loop: + errno = 0; /* reset, just in case */ +- pid = wait3(&w.w_status, ++ pid = wait3(&w, + (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); + + if (pid <= 0) { +@@ -117,7 +117,7 @@ + pp->p_flags &= ~(PRUNNING | PSTOPPED | PREPORTED); + if (WIFSTOPPED(w)) { + pp->p_flags |= PSTOPPED; +- pp->p_reason = w.w_stopsig; ++ pp->p_reason = WSTOPSIG(w); + } + else { + if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime)) +@@ -125,16 +125,16 @@ + + pp->p_rusage = ru; + if (WIFSIGNALED(w)) { +- if (w.w_termsig == SIGINT) ++ if (WTERMSIG(w) == SIGINT) + pp->p_flags |= PINTERRUPTED; + else + pp->p_flags |= PSIGNALED; +- if (w.w_coredump) ++ if (WCOREDUMP(w)) + pp->p_flags |= PDUMPED; +- pp->p_reason = w.w_termsig; ++ pp->p_reason = WTERMSIG(w); + } + else { +- pp->p_reason = w.w_retcode; ++ pp->p_reason = WEXITSTATUS(w); + if (pp->p_reason != 0) + pp->p_flags |= PAEXITED; + else |