mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
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:
parent
a6b5bb439c
commit
3363426a6b
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue