aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/wait4.c
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-10-08 18:38:08 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-10-08 18:38:08 +0000
commitce7f605ba7d119d7aae336117a306167ede44916 (patch)
tree58b06149239c7abd2286d05f33155a7c36c1f2b3 /sysdeps/mach/hurd/wait4.c
parentb853ee82a2701bc91a8e5215191901ea37227647 (diff)
downloadglibc-ce7f605ba7d119d7aae336117a306167ede44916.zip
glibc-ce7f605ba7d119d7aae336117a306167ede44916.tar.gz
glibc-ce7f605ba7d119d7aae336117a306167ede44916.tar.bz2
*** empty log message ***
Tue Oct 8 13:58:31 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * hurd/ports-get.c (_hurd_ports_get): If the requested port is null, don't attempt mach_port_mod_refs.
Diffstat (limited to 'sysdeps/mach/hurd/wait4.c')
-rw-r--r--sysdeps/mach/hurd/wait4.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/wait4.c b/sysdeps/mach/hurd/wait4.c
index 83eba88..9dfbc55 100644
--- a/sysdeps/mach/hurd/wait4.c
+++ b/sysdeps/mach/hurd/wait4.c
@@ -31,8 +31,10 @@ __wait4 (pid_t pid, __WAIT_STATUS_DEFN stat_loc,
error_t err;
struct rusage ignored;
natural_t sigcode;
-
- err = __USEPORT (PROC, __proc_wait (port, pid, options, stat_loc, &sigcode,
+ int dummy;
+
+ err = __USEPORT (PROC, __proc_wait (port, pid, options,
+ stat_loc ?: &dummy, &sigcode,
usage ?: &ignored, &dead));
return err ? (pid_t) __hurd_fail (err) : dead;