Skip to content

Commit

Permalink
Revert "sched/signal: change pthread_exit to nx_pthread_exit"
Browse files Browse the repository at this point in the history
This reverts commit 651a5e6afafa6de2dd9e9263b54caa4c75b1a0f1.
  • Loading branch information
xiaoxiang781216 authored and txy-21 committed Jan 16, 2025
1 parent f436dd7 commit 8719ecf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sched/signal/sig_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include <assert.h>

#include <nuttx/pthread.h>
#include <nuttx/sched.h>
#include <nuttx/spinlock.h>
#include <nuttx/signal.h>
Expand Down Expand Up @@ -225,8 +225,6 @@ static void nxsig_abnormal_termination(int signo)
group_kill_children(rtcb);
#endif

tls_cleanup_popall(tls_get_info());

#ifndef CONFIG_DISABLE_PTHREAD
/* Check if the currently running task is actually a pthread */

Expand All @@ -237,7 +235,7 @@ static void nxsig_abnormal_termination(int signo)
* REVISIT: This will not work if HAVE_GROUP_MEMBERS is not set.
*/

nx_pthread_exit(NULL);
pthread_exit(NULL);
}
else
#endif
Expand Down

0 comments on commit 8719ecf

Please sign in to comment.