1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

thread: Terminating threads go to zombie state instead of stopped

This commit is contained in:
chrysn 2023-01-25 14:57:34 +01:00
parent d6f44f6206
commit 4d8d745ab8

View File

@ -319,10 +319,7 @@ NORETURN void sched_task_exit(void)
sched_threads[thread_getpid()] = NULL;
sched_num_threads--;
sched_set_status(thread_get_active(), STATUS_STOPPED);
sched_active_thread = NULL;
cpu_switch_context_exit();
thread_zombify();
}
#ifdef MODULE_SCHED_CB