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

1
assert/Depend Normal file
View File

@ -0,0 +1 @@
iconvdata

1
iconvdata/Depend Normal file
View File

@ -0,0 +1 @@
iconv

1
intl/Depend Normal file
View File

@ -0,0 +1 @@
iconvdata

View File

@ -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> 2000-06-11 Geoff Keating <geoffk@cygnus.com>
* sysdeps/powerpc/pspinlock.c (__pthread_spin_lock): Implement. * sysdeps/powerpc/pspinlock.c (__pthread_spin_lock): Implement.

View File

@ -34,7 +34,11 @@ main (void)
printf ("count = %lu\n", count); printf ("count = %lu\n", count);
} }
/* pthread_detach (thread); */ /* pthread_detach (thread); */
pthread_join (thread, NULL); if (pthread_join (thread, NULL) != 0)
{
printf ("join failed, count %lu\n", count);
return 2;
}
usleep (10); usleep (10);
} }
return 0; return 0;