Shell: Put failed command exit statuses in the debug output instead.

It was kinda unpleasant to always see "So-and-so exited with status 123."
This commit is contained in:
Andreas Kling 2019-07-25 15:27:13 +02:00
parent a6b5bb439c
commit 3363426a6b
Notes: sideshowbarker 2024-07-19 13:03:23 +09:00

View file

@ -499,7 +499,7 @@ static int run_command(const String& cmd)
}
if (WIFEXITED(wstatus)) {
if (WEXITSTATUS(wstatus) != 0)
printf("Shell: %s(%d) exited with status %d\n", child.name.characters(), child.pid, WEXITSTATUS(wstatus));
dbg() << "Shell: " << child.name << ":" << child.pid << " exited with status " << WEXITSTATUS(wstatus);
if (i == 0)
return_value = WEXITSTATUS(wstatus);
} else if (WIFSTOPPED(wstatus)) {