update_engine: Wait for dbus connection to be available.
In the general case, update_engine won't be launched until dbus-daemon
is ready. Nevertheless, if dbus-daemon crashes for some reason,
update_engine will crash and restart again and again because it can't
get the DBus system bus. This will generate many crash reports in a
short period of time.
This patch waits up to 10 seconds to get the DBus system bus, and then
crashes if it couldn't get it by then.
BUG=chromium:417142
TEST=launch update_engine without dbus-daemon and saw it retry and crash.
TEST=launch update_engine in the normal case, it doesn't retry..
Change-Id: I99714cec87f99eeef385fc6e8787334fbc029044
Reviewed-on: https://chromium-review.googlesource.com/219690
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
1 file changed