1
0
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:
benpicco 2020-03-23 20:53:00 +01:00 committed by GitHub
commit a3dca87a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */