about summary refs log tree commit diff
path: root/linuxthreads/Examples/ex4.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/Examples/ex4.c')
-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 11a09f013e..86584de70d 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);
-  exit(0);
+  return 0;
 }