mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
warning message when exiting with active jobs uses PID of first process, not PGID
Work on #4303. (cherry picked from commit eb081481c64c34b3a048ad28aa9161f5f8b2bfcf)
This commit is contained in:
parent
da2201d69a
commit
007a62cab6
@ -2197,7 +2197,7 @@ static void bg_job_warning() {
|
||||
job_iterator_t jobs;
|
||||
while (job_t *j = jobs.next()) {
|
||||
if (!job_is_completed(j)) {
|
||||
fwprintf(stdout, L"%6d %ls\n", j->pgid, j->command_wcstr());
|
||||
fwprintf(stdout, L"%6d %ls\n", j->processes[0]->pid, j->command_wcstr());
|
||||
}
|
||||
}
|
||||
fputws(L"\n", stdout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user