aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-12 19:02:02 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-12 19:02:02 +0000
commita5b97402f70a3cd43ffee9ccb71560457b4cd88c (patch)
treec4db775edbfc4cec6fe8f9d5f50635dd6173e083 /linuxthreads
parenta21cd9d19337a272b5ae311b26b470b42f3a6e53 (diff)
downloadglibc-a5b97402f70a3cd43ffee9ccb71560457b4cd88c.zip
glibc-a5b97402f70a3cd43ffee9ccb71560457b4cd88c.tar.gz
glibc-a5b97402f70a3cd43ffee9ccb71560457b4cd88c.tar.bz2
Update.
2000-06-12 Ulrich Drepper <drepper@redhat.com> * Examples/ex6.c: Test return value of pthread_join.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog4
-rw-r--r--linuxthreads/Examples/ex6.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index c948fe3..c4236bd 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-12 Ulrich Drepper <drepper@redhat.com>
+
+ * Examples/ex6.c: Test return value of pthread_join.
+
2000-06-11 Geoff Keating <geoffk@cygnus.com>
* sysdeps/powerpc/pspinlock.c (__pthread_spin_lock): Implement.
diff --git a/linuxthreads/Examples/ex6.c b/linuxthreads/Examples/ex6.c
index 15914ce..05f92b6 100644
--- a/linuxthreads/Examples/ex6.c
+++ b/linuxthreads/Examples/ex6.c
@@ -34,7 +34,11 @@ main (void)
printf ("count = %lu\n", count);
}
/* pthread_detach (thread); */
- pthread_join (thread, NULL);
+ if (pthread_join (thread, NULL) != 0)
+ {
+ printf ("join failed, count %lu\n", count);
+ return 2;
+ }
usleep (10);
}
return 0;