From: Lennart Poettering Date: Thu, 29 Nov 2018 17:48:32 +0000 (+0100) Subject: core: when we install a job, announce this via the bus X-Git-Tag: v240~127^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6d05912cb1785d8c75eb40545beb8a7c6753cb9;p=thirdparty%2Fsystemd.git core: when we install a job, announce this via the bus Whenever we enqueue a job, we should announce this on the bus, hence add both the job and the unit to the dbus queues. (Why both? The former should be obvious, the latter because we send out Job properties). In most cases adding these to the queue is not necessary, as other properties tend to change at the same time and result in a change being sent out. However, let's clean this up and make it explicit. --- diff --git a/src/core/job.c b/src/core/job.c index 2a630356bfa..61ca6eb4333 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -236,6 +236,9 @@ Job* job_install(Job *j) { job_add_to_gc_queue(j); + job_add_to_dbus_queue(j); /* announce this job to clients */ + unit_add_to_dbus_queue(j->unit); /* The Job property of the unit has changed now */ + return j; }