From 5890deb68e54838559c5d32c70d65e033e33d682 Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Wed, 28 Feb 2024 16:04:20 -0700 Subject: Remove zombie slayer code from main repl Reaping is currently handled by a signal handler, so this code is no longer necessary. --- src/main.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index b87089a..3cb2a74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,16 +42,6 @@ fn repl(path: &Vec<&Path>, prompt: &str) { break; } - // Kill zombies - // TODO: Remove this (since it was implemented in incant_quiet()) - // unsafe { - // let mut status = -1; - // let mut pid = waitpid(-1, &mut status, WNOHANG); - // while pid > 0 { - // pid = waitpid(-1, &mut status, WNOHANG); - // } - // } - // Trim the input let poetry = String::from(poetry.trim()); -- cgit v1.2.3