summaryrefslogtreecommitdiff
path: root/nuttx/sched/pthread_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/pthread_exit.c')
-rw-r--r--nuttx/sched/pthread_exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/pthread_exit.c b/nuttx/sched/pthread_exit.c
index b8183142a..db51be78f 100644
--- a/nuttx/sched/pthread_exit.c
+++ b/nuttx/sched/pthread_exit.c
@@ -76,7 +76,7 @@
************************************************************************/
/************************************************************************
- * Function: pthread_exit
+ * Name: pthread_exit
*
* Description:
* Terminate execution of a thread started with pthread_create.
@@ -124,6 +124,7 @@ void pthread_exit(FAR void *exit_value)
{
error_code = EXIT_FAILURE;
}
+
exit(error_code);
}