summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libthr/thread/thr_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index 059af3d..e394324 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -173,7 +173,7 @@ _pthread_exit(void *status)
/* If we're the last thread, call it quits */
if (TAILQ_EMPTY(&_thread_list))
- exit(curthread->ret);
+ exit(0);
/*
* Retire the architecture specific id so that it can be used for
OpenPOWER on IntegriCloud