From e7c2e9023625b25d73802b617fb52eb0a72fa623 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 3 Nov 2023 14:06:50 +0100 Subject: [PATCH] Revert "custom: reap zombie processes on termination" This reverts commit 1c1a39f597051799b86449b673782daa0376e386. --- include/util/command.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/util/command.hpp b/include/util/command.hpp index faf32cf0..0d729b77 100644 --- a/include/util/command.hpp +++ b/include/util/command.hpp @@ -112,10 +112,6 @@ inline FILE* open(const std::string& cmd, int& pid) { execlp("/bin/sh", "sh", "-c", cmd.c_str(), (char*)0); exit(0); } else { - reap_mtx.lock(); - reap.push_back(child_pid); - reap_mtx.unlock(); - ::close(fd[1]); } pid = child_pid;