diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-26 05:35:33 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-26 05:35:33 +0000 |
commit | 9531825dd01559105b7b3c1d493e4a13d358988a (patch) | |
tree | 8c14a6740e3512fb546725d46c41f21f11d37b12 /openbsd-compat/bsd-nextstep.c | |
parent | 8ca935655e3c0a8ddae90f8609433eca203054f0 (diff) |
- Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz
Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
Diffstat (limited to 'openbsd-compat/bsd-nextstep.c')
-rw-r--r-- | openbsd-compat/bsd-nextstep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-nextstep.c b/openbsd-compat/bsd-nextstep.c index 64962d013..85b298a48 100644 --- a/openbsd-compat/bsd-nextstep.c +++ b/openbsd-compat/bsd-nextstep.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include "includes.h" | 23 | #include "includes.h" |
24 | 24 | ||
25 | RCSID("$Id: bsd-nextstep.c,v 1.3 2001/02/09 01:55:36 djm Exp $"); | 25 | RCSID("$Id: bsd-nextstep.c,v 1.4 2001/03/26 05:35:34 mouring Exp $"); |
26 | 26 | ||
27 | #ifdef HAVE_NEXT | 27 | #ifdef HAVE_NEXT |
28 | #include <errno.h> | 28 | #include <errno.h> |
@@ -37,7 +37,8 @@ posix_wait(int *status) | |||
37 | 37 | ||
38 | #undef wait /* Use NeXT's wait() function */ | 38 | #undef wait /* Use NeXT's wait() function */ |
39 | wait_pid = wait(&statusp); | 39 | wait_pid = wait(&statusp); |
40 | status = (int *) statusp.w_status; | 40 | if (status) |
41 | *status = (int) statusp.w_status; | ||
41 | 42 | ||
42 | return wait_pid; | 43 | return wait_pid; |
43 | } | 44 | } |