]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: when we manage to resolve a user, only enqueue dbus event, don't send out messa...
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Nov 2018 19:09:10 +0000 (20:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Dec 2018 11:53:26 +0000 (12:53 +0100)
Let's only enqueue the dbus signal generation, let's not do it
right-away, after all we want coalescing to take effect here.

src/core/unit.c

index 89bb95e2f1cf136d00b5098fd37770a3601df0d5..cc4ae505161cf6b302708220fb56218a3942cf45 100644 (file)
@@ -4928,7 +4928,7 @@ void unit_notify_user_lookup(Unit *u, uid_t uid, gid_t gid) {
 
         r = unit_ref_uid_gid(u, uid, gid);
         if (r > 0)
-                bus_unit_send_change_signal(u);
+                unit_add_to_dbus_queue(u);
 }
 
 int unit_set_invocation_id(Unit *u, sd_id128_t id) {