1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

Shell: Avoid unnecessarily taking control of the standard streams

As of a0506cb39e, this is no longer
needed to write to stdout.
Fixes #5776.
This commit is contained in:
AnotherTest 2021-03-16 08:46:54 +03:30 committed by Andreas Kling
parent 18a5ddfadd
commit ef3679f9c3

View file

@ -862,7 +862,6 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
if (!job->exited())
return;
restore_ios();
if (job->is_running_in_background() && job->should_announce_exit())
warnln("Shell: Job {} ({}) exited\n", job->job_id(), job->cmd().characters());
else if (job->signaled() && job->should_announce_signal())