From: Scott Murray Date: Tue, 21 Jul 2020 02:04:11 +0000 (-0400) Subject: Add wait for start jobs X-Git-Tag: 9.99.2~1^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=55e6be446553dd0e813c0de1cc60a81f11dddda0;hp=55e6be446553dd0e813c0de1cc60a81f11dddda0;p=src%2Fapp-framework-main.git Add wait for start jobs The systemd job to start an application unit may remain queued long enough after a call into the systemd D-Bus API that the subsequent state check sees the unit as still inactive. This results in the application start being incorrectly reported as having failed, when it will still actually proceed once the job is dequeued and run in systemd. To fix this, checking of the state of the job object returned by the start D-Bus calls has been added in the various wrapper functions in src/utils-systemd.c. The timeout mechanism used in the new job_wait helper function is based on the existing state checking logic of the wait_state_stable function in src/afm-urun.c. Bug-AGL: SPEC-3365, SPEC-3427, SPEC-3457 Signed-off-by: Scott Murray Change-Id: I01077a4213944233506518869c3dc604bd40f693 ---