summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRory Dudley2024-02-28 16:04:20 -0700
committerRory Dudley2024-02-28 16:04:20 -0700
commit5890deb68e54838559c5d32c70d65e033e33d682 (patch)
treed74d786e160951bf89247d335de53cf8c753897c
parente94d09da9449cabd7ece2acd98d52b1946a922a4 (diff)
downloaddwarvish-5890deb68e54838559c5d32c70d65e033e33d682.tar.gz
Remove zombie slayer code from main repl
Reaping is currently handled by a signal handler, so this code is no longer necessary.
-rw-r--r--src/main.rs10
1 files changed, 0 insertions, 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());