Skip to content

Commit

Permalink
Revert "custom: reap zombie processes on termination"
Browse files Browse the repository at this point in the history
This reverts commit 1c1a39f.
  • Loading branch information
Alexays committed Nov 3, 2023
1 parent c6a9b63 commit e7c2e90
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/util/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7c2e90

Please sign in to comment.