Fix from @yoric - incorrect initialization of spin loop

This commit is contained in:
Jeremy Soller
2017-01-11 13:59:10 -07:00
parent ed69fac232
commit 35c2297724

View File

@@ -897,7 +897,7 @@ pub fn kill(pid: ContextId, sig: usize) -> Result<usize> {
fn reap(pid: ContextId) -> Result<ContextId> {
// Spin until not running
let mut running = false;
let mut running = true;
while running {
{
let contexts = context::contexts();