* posix/tst-waitid.c (do_test): Kill the child process when bailing out early on some failure.
* posix/tst-waitid.c: New file. * posix/Makefile (tests): Add it.