aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cond12.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-11-21 18:53:38 +0000
committerUlrich Drepper <drepper@redhat.com>2003-11-21 18:53:38 +0000
commit1d9b73ab80395bfa5974a7e9fd4d99791783ea71 (patch)
tree935f5e0741e2c978371f640f3ba50e2d7411f009 /nptl/tst-cond12.c
parente42a990eccb6ce79650db5fb713b94732df82f4d (diff)
downloadglibc-1d9b73ab80395bfa5974a7e9fd4d99791783ea71.zip
glibc-1d9b73ab80395bfa5974a7e9fd4d99791783ea71.tar.gz
glibc-1d9b73ab80395bfa5974a7e9fd4d99791783ea71.tar.bz2
Update.
2003-11-21 Jakub Jelinek <jakub@redhat.com> * Makefile (distribute): Add tst-cleanup4aux.c. * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c include. * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use pthread_cond_signal.
Diffstat (limited to 'nptl/tst-cond12.c')
-rw-r--r--nptl/tst-cond12.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nptl/tst-cond12.c b/nptl/tst-cond12.c
index 256c8a9..769e6b1 100644
--- a/nptl/tst-cond12.c
+++ b/nptl/tst-cond12.c
@@ -152,12 +152,21 @@ do_test (void)
p->var = 0;
+#ifndef USE_COND_SIGNAL
if (pthread_cond_broadcast (&p->c) != 0)
{
puts ("child: cond_broadcast failed");
kill (getppid (), SIGKILL);
exit (1);
}
+#else
+ if (pthread_cond_signal (&p->c) != 0)
+ {
+ puts ("child: cond_signal failed");
+ kill (getppid (), SIGKILL);
+ exit (1);
+ }
+#endif
if (pthread_mutex_unlock (&p->m) != 0)
{