diff options
-rw-r--r-- | core/host/task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/host/task.c b/core/host/task.c index e560b4c59d..08c70da66b 100644 --- a/core/host/task.c +++ b/core/host/task.c @@ -178,7 +178,7 @@ static void __attribute__((noinline)) _task_dump_trace_dispatch(int sig) { int need_dispatch = 1; - if (pthread_self() != main_thread) { + if (!pthread_equal(pthread_self(), main_thread)) { need_dispatch = 0; } else if (!task_start_called()) { fprintf(stderr, "Stack trace of main thread:\n"); |