Shell: Don't pass nonsense options to waitpid()

I had these options confused with the options for waitid()
This commit is contained in:
Andreas Kling 2020-02-25 16:08:44 +01:00
parent 423c48b355
commit 559a99c104
Notes: sideshowbarker 2024-07-19 09:04:01 +09:00

View file

@ -882,7 +882,7 @@ static int run_command(const String& cmd)
for (size_t i = 0; i < children.size(); ++i) {
auto& child = children[i];
do {
int rc = waitpid(child.pid, &wstatus, WEXITED | WSTOPPED);
int rc = waitpid(child.pid, &wstatus, 0);
if (rc < 0 && errno != EINTR) {
if (errno != ECHILD)
perror("waitpid");