From 8a17527bc524bff5094757a2b82d105c8cfa0e67 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 11 Aug 2020 15:54:16 +0430 Subject: [PATCH] Shell: Show the job id instead of the pid when a job exits in background --- Shell/Shell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 99ba9c4327..be5d61304e 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -581,7 +582,7 @@ RefPtr Shell::run_command(const AST::Command& command) if (!job->exited()) return; if (job->is_running_in_background()) - fprintf(stderr, "Shell: Job %d(%s) exited\n", job->pid(), job->cmd().characters()); + fprintf(stderr, "Shell: Job %" PRIu64 "(%s) exited\n", job->job_id(), job->cmd().characters()); job->disown(); };