projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba441d2
)
2002-11-13 Roland McGrath <roland@redhat.com>
author
Roland McGrath
<roland@gnu.org>
Thu, 14 Nov 2002 00:29:07 +0000
(
00:29
+0000)
committer
Roland McGrath
<roland@gnu.org>
Thu, 14 Nov 2002 00:29:07 +0000
(
00:29
+0000)
* Examples/ex6.c (main): Improve error reporting.
linuxthreads/Examples/ex6.c
patch
|
blob
|
history
diff --git
a/linuxthreads/Examples/ex6.c
b/linuxthreads/Examples/ex6.c
index
f8ce066
..
9a02668
100644
(file)
--- a/
linuxthreads/Examples/ex6.c
+++ b/
linuxthreads/Examples/ex6.c
@@
-34,9
+34,10
@@
main (void)
printf ("count = %lu\n", count);
}
/* pthread_detach (thread); */
- if (pthread_join (thread, NULL) != 0)
+ int err = pthread_join (thread, NULL);
+ if (err != 0)
{
- printf ("join failed
, count %lu\n"
, count);
+ printf ("join failed
(%s), count %lu\n", strerror (err)
, count);
return 2;
}
usleep (10);