]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix generic wait3 after union wait_status removal.
authorRoland McGrath <roland@hack.frob.com>
Fri, 2 Sep 2016 23:57:59 +0000 (16:57 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 2 Sep 2016 23:59:49 +0000 (16:59 -0700)
* sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
not any more.

(cherry picked from commit 9a3d16ac152447567bfc822497c564a0630c79fe)

ChangeLog
sysdeps/posix/wait3.c

index 01272446091ed09c94a52245834d47c225b113fd..2738295ab10d5c067a37c4f88b294d3de1b50606 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-02  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
+       not any more.
+
 2016-09-02  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
index cf43d973a7b7c71f254276bb8b6ec9bbb41489f4..73722d2be65228c845a19ec5998609d74b3e5799 100644 (file)
@@ -33,7 +33,7 @@ __wait3 (int *stat_loc, int options, struct rusage *usage)
       __set_errno (ENOSYS);
       return (pid_t) -1;
     }
-  return __waitpid (WAIT_ANY, stat_loc.__iptr, options);
+  return __waitpid (WAIT_ANY, stat_loc, options);
 }
 
 weak_alias (__wait3, wait3)