From: Michael Tremer Date: Sun, 26 Jan 2025 17:06:47 +0000 (+0000) Subject: job: Once the job has exited, we need to remove it from the daemon X-Git-Tag: 0.9.30~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c64b57280ba7f20a16af845cbf3f3a602ebe85c;p=pakfire.git job: Once the job has exited, we need to remove it from the daemon Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/job.c b/src/pakfire/job.c index c83b6b6c..dd133a13 100644 --- a/src/pakfire/job.c +++ b/src/pakfire/job.c @@ -367,15 +367,14 @@ static int pakfire_job_exited(sd_event_source* s, const siginfo_t* si, void* dat // Send some information about this r = pakfire_job_crashed(job, si); - if (r < 0) { + if (r < 0) ERROR(job->ctx, "Could not send crash report: %s\n", strerror(-r)); - return r; - } break; } - return 0; + // Let the daemon know this is finished + return pakfire_daemon_job_finished(job->daemon, job); } static int pakfire_job_send_log(struct pakfire_job* job, int priority, const char* line, size_t length) {