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:
parent
29035b55b2
commit
8a17527bc5
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue