From e0cefd873f005a50853907e866101339edb55f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hozda?= Date: Thu, 26 Sep 2019 17:30:15 +0200 Subject: [PATCH] fix reaping as per OmniTechnoMancer's advice --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7cd201d..9503016 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,8 @@ fn sig_reap() { if pid.as_raw() <= 0 { break; }, - _ => (), + WaitStatus::StillAlive => break, + _ => unreachable!(), }, } }