]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Avoid race when starting dbus services
authorMattias Jernberg <mattiasj@axis.com>
Thu, 11 Jul 2019 16:13:46 +0000 (18:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Aug 2019 14:12:31 +0000 (16:12 +0200)
commita5a8776ae5e4244b7f5acb2a1bfbe6e0b4d8a870
tree0ba218a90b86b7fb13ad1bb0e3741d7c5c361439
parentf364a17dd165b398bd15470e93726bf6ca90be90
core: Avoid race when starting dbus services

In high load scenarios it is possible for services to be started
before the NameOwnerChanged signal is properly installed.

Emulate a callback by also queuing a GetNameOwner when the match is
installed.

Fixes: #12956
src/core/dbus.c
src/core/service.c
src/core/unit.c
src/core/unit.h