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

Shell: Show the job id instead of the pid when a job exits in background

This commit is contained in:
AnotherTest 2020-08-11 15:54:16 +04:30 committed by Andreas Kling
parent 29035b55b2
commit 8a17527bc5

View file

@ -39,6 +39,7 @@
#include <LibLine/Editor.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
@ -581,7 +582,7 @@ RefPtr<Job> 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();
};