From 35c22977240597d656979fd5d9bdb25a755bb372 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 11 Jan 2017 13:59:10 -0700 Subject: [PATCH] Fix from @yoric - incorrect initialization of spin loop --- src/syscall/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscall/process.rs b/src/syscall/process.rs index f8bc6c35..d2c9a3a6 100644 --- a/src/syscall/process.rs +++ b/src/syscall/process.rs @@ -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(); -- GitLab