From a5b97402f70a3cd43ffee9ccb71560457b4cd88c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 12 Jun 2000 19:02:02 +0000 Subject: Update. 2000-06-12 Ulrich Drepper * Examples/ex6.c: Test return value of pthread_join. --- linuxthreads/Examples/ex6.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linuxthreads/Examples') diff --git a/linuxthreads/Examples/ex6.c b/linuxthreads/Examples/ex6.c index 15914ce85d..05f92b6a71 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; -- cgit 1.4.1