summaryrefslogtreecommitdiff
path: root/nptl/tst-cancel4.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-07-21 23:14:58 +0000
committerRoland McGrath <roland@gnu.org>2004-07-21 23:14:58 +0000
commit4fb907b74125ddcfc6a6f06c999c1d3488061218 (patch)
treef740386ac46f46656682d1fcd0d34c049fa5a59f /nptl/tst-cancel4.c
parent58c2859f14926dd965499eecdd4b9a41e0a1871b (diff)
downloadglibc-4fb907b74125ddcfc6a6f06c999c1d3488061218.tar.gz
* Makefile ($(objpfx)multidir.mk): Use $(make-target-directory).
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r--nptl/tst-cancel4.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index 87000fa6a4..8dc8aec0af 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/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.
@@ -673,8 +673,11 @@ tf_waitid (void *arg)
int s;
pthread_cleanup_push (cl, NULL);
+#ifndef WEXITED
+# define WEXITED 0
+#endif
siginfo_t si;
- s = waitid (P_PID, pid, &si, 0);
+ s = waitid (P_PID, pid, &si, WEXITED);
pthread_cleanup_pop (0);