mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #13300 from JulianHolzwarth/pr/thread_status_t/zombie_fixup
core/thread.c: thread_zombify small fix
This commit is contained in:
commit
a3dca87a78
@ -61,9 +61,9 @@ void thread_zombify(void)
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned state = irq_disable();
|
||||
irq_disable();
|
||||
sched_set_status((thread_t *)sched_active_thread, STATUS_ZOMBIE);
|
||||
irq_restore(state);
|
||||
irq_enable();
|
||||
thread_yield_higher();
|
||||
|
||||
/* this line should never be reached */
|
||||
|
Loading…
Reference in New Issue
Block a user