mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00: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
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) {
|
for (size_t i = 0; i < children.size(); ++i) {
|
||||||
auto& child = children[i];
|
auto& child = children[i];
|
||||||
do {
|
do {
|
||||||
int rc = waitpid(child.pid, &wstatus, WEXITED | WSTOPPED);
|
int rc = waitpid(child.pid, &wstatus, 0);
|
||||||
if (rc < 0 && errno != EINTR) {
|
if (rc < 0 && errno != EINTR) {
|
||||||
if (errno != ECHILD)
|
if (errno != ECHILD)
|
||||||
perror("waitpid");
|
perror("waitpid");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue