summaryrefslogtreecommitdiff
path: root/Shell/Shell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Shell/Shell.cpp')
-rw-r--r--Shell/Shell.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp
index 433e7f4ea3..fda9540bd3 100644
--- a/Shell/Shell.cpp
+++ b/Shell/Shell.cpp
@@ -853,7 +853,9 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
if (!job->exited())
return;
if (job->is_running_in_background() && job->should_announce_exit())
- fprintf(stderr, "Shell: Job %" PRIu64 "(%s) exited\n", job->job_id(), job->cmd().characters());
+ warnln("Shell: Job {} ({}) exited\n", job->job_id(), job->cmd().characters());
+ else if (job->signaled() && job->should_announce_signal())
+ warnln("Shell: Job {} ({}) {}\n", job->job_id(), job->cmd().characters(), strsignal(job->termination_signal()));
last_return_code = job->exit_code();
job->disown();