OSDN Git Service

waitid: linux ABI takes 5 args, not 4
authorMike Frysinger <vapier@gentoo.org>
Wed, 27 May 2009 23:32:18 +0000 (19:32 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 27 May 2009 23:32:18 +0000 (19:32 -0400)
commita16022fc1e67009a89c2cbba253da3631286f235
tree1d25d5ef973c93407c496c7ece64e97bd26dce1f
parentb3eb972b9947e60f5b3d0135d8fbec19bb5d6a60
waitid: linux ABI takes 5 args, not 4

The POSIX waitid() takes 4 args, but the Linux one takes 5 args, so make
sure we stuff the 5th arg with a NULL.  Otherwise garbage gets randomly
passed up and considering this is a pointer, that's baaaad.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/common/waitid.c