aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-07 21:36:21 +0000
committerRoland McGrath <roland@gnu.org>2004-09-07 21:36:21 +0000
commitdb12ef58bae18c0ed75b48b37e18891bd4346882 (patch)
treea5eb5e2f9e582f55600a87efd43ce3d15a19e0a2 /linuxthreads
parent0cf12a6a6d1391e69cda2398751644708e452b46 (diff)
downloadglibc-db12ef58bae18c0ed75b48b37e18891bd4346882.tar
glibc-db12ef58bae18c0ed75b48b37e18891bd4346882.tar.gz
glibc-db12ef58bae18c0ed75b48b37e18891bd4346882.tar.bz2
glibc-db12ef58bae18c0ed75b48b37e18891bd4346882.zip
2004-09-04 Jakub Jelinek <jakub@redhat.com>
* tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/tst-cancel4.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linuxthreads/tst-cancel4.c b/linuxthreads/tst-cancel4.c
index 774f583d1f..03f6bfe056 100644
--- a/linuxthreads/tst-cancel4.c
+++ b/linuxthreads/tst-cancel4.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -357,8 +357,11 @@ tf_waitid (void *arg)
exit (0);
}
+#ifndef WEXITED
+# define WEXITED 0
+#endif
siginfo_t si;
- int s = waitid (P_PID, pid, &si, 0);
+ int s = waitid (P_PID, pid, &si, WEXITED);
printf ("%s: waitid returns with %d (%s)\n", __FUNCTION__, s,
strerror (errno));