aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/Examples')
-rw-r--r--linuxthreads/Examples/ex4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/Examples/ex4.c b/linuxthreads/Examples/ex4.c
index 8ad7454..11a09f0 100644
--- a/linuxthreads/Examples/ex4.c
+++ b/linuxthreads/Examples/ex4.c
@@ -103,5 +103,5 @@ int main(int argc, char ** argv)
printf("Thread %lx: \"%s\"\n", pthread_self(), res);
pthread_join(th1, NULL);
pthread_join(th2, NULL);
- pthread_exit(NULL);
+ exit(0);
}