mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2000-06-12 Ulrich Drepper <drepper@redhat.com> * Examples/ex6.c: Test return value of pthread_join.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user