Formerly mach/hurd/__wait4.c.~9~
authormib <mib>
Fri, 8 Apr 1994 18:09:47 +0000 (18:09 +0000)
committermib <mib>
Fri, 8 Apr 1994 18:09:47 +0000 (18:09 +0000)
sysdeps/mach/hurd/wait4.c

index 4e84a03..6f89ac2 100644 (file)
@@ -29,6 +29,10 @@ __wait4 (pid_t pid, __WAIT_STATUS_DEFN stat_loc,
 {
   pid_t dead;
   error_t err;
+  struct rusage rubuf;
+
+  if (!usage)
+    usage = &rubuf;
 
   err = __USEPORT (PROC, __proc_wait (port, pid, options, stat_loc,
                                      usage, &dead));