From 559a99c10449fd7bebac7d2d859764024eea5ed2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 25 Feb 2020 16:08:44 +0100 Subject: [PATCH] Shell: Don't pass nonsense options to waitpid() I had these options confused with the options for waitid() --- Shell/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/main.cpp b/Shell/main.cpp index 420b450071..d63f02ccb6 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -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");