mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
warning message when exiting with active jobs uses PID of first process, not PGID
Work on #4303.
(cherry picked from commit eb081481c6)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user