mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
Shell: Don't pass nonsense options to waitpid()
I had these options confused with the options for waitid()
This commit is contained in:
parent
423c48b355
commit
559a99c104
Notes:
sideshowbarker
2024-07-19 09:04:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/559a99c1044
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue