mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 15:51:18 -03:00
Switch job handling to use shared pointers instead of raw pointers
Clarifies memory management around allocation of job_ts
This commit is contained in:
@@ -2184,7 +2184,7 @@ static void handle_end_loop() {
|
||||
}
|
||||
|
||||
bool bg_jobs = false;
|
||||
while (job_t *j = jobs.next()) {
|
||||
while (const job_t *j = jobs.next()) {
|
||||
if (!job_is_completed(j)) {
|
||||
bg_jobs = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user