diff --git a/sched/pthread/pthread_exit.c b/sched/pthread/pthread_exit.c index 22a7871e643..7fe27a61216 100644 --- a/sched/pthread/pthread_exit.c +++ b/sched/pthread/pthread_exit.c @@ -109,5 +109,5 @@ void nx_pthread_exit(FAR void *exit_value) * calling atexit() functions. */ - _exit(EXIT_SUCCESS); + up_exit(EXIT_SUCCESS); }