Handle reconnecting to the dbus, add glib helper
[Bug/Feature] Handle reconnecting to the dbus in case of the
connection loss. Also add a Glib helper for
scheduling a timer function to the glib loop.
Style cosmetics.
[Cause] In case the DBUS daemon gets restarted we loose
connection, we need to handle that case.
[Solution] Detect nameLost event and react appropriately.
[Verification] Built, installed, run tests.
The reconnect has been tested by hand as follows:
1. Run the security-containers-server
2. Make sure it started properly
3. Enter the container and restart dbus
4. See SCS logs, make sure it reconnected
5. Enter the container stop dbus and dbus.socket
6. See SCS logs, make sure the container stopped
Change-Id: I1185d8d46e0ace8e96b4d4136fbca20bd603bea9
Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@partner.samsung.com>
20 files changed: