1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
2000-06-12  Ulrich Drepper  <drepper@redhat.com>

	* Examples/ex6.c: Test return value of pthread_join.
This commit is contained in:
Ulrich Drepper
2000-06-12 19:02:02 +00:00
parent a21cd9d193
commit a5b97402f7
5 changed files with 12 additions and 1 deletions

View File

@ -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;