timedated: Respond on org.freedesktop.timedate1.SetNTP only when really finished
authorMichal Koutný <mkoutny@suse.com>
Tue, 20 Feb 2024 18:26:16 +0000 (19:26 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 27 Mar 2024 17:28:24 +0000 (17:28 +0000)
commit3a51e31be9f626cf772733cb289ed64739fab0e4
treebd0a8ca34b9fb263ec3796ef8dec2f2a25ef6cf6
parenta3ed665a29ea9355c78a2a6b3a032b9504499dd6
timedated: Respond on org.freedesktop.timedate1.SetNTP only when really finished

The method returns prematurely (before jobs it triggers terminate). This
is externally visible because other methods may fail if jobs did not
finish.
Postpone the DBus method response until we collect all signals for
finished jobs.
systemd-timedated keeps track of in-flight DBus requests and answers
them all in unspecified order when jobs finish. The capacity of requests
in systemd-timedated is limited.

Fixes: #17739
src/timedate/timedated.c