cloud-hypervisor/vmm
Omer Faruk Bayram f00df25d40 vmm: dbus: graceful shutdown of the DBusApi thread
This commit adds support for graceful shutdown of the DBusApi thread
using `futures::channel::oneshot` channels. By using oneshot channels,
we ensure that the thread has enough time to send a response to the
`VmmShutdown` method call before it is terminated. Without this step,
the thread may be terminated before it can send a response, resulting
in an error message on the client side stating that the message
recipient disconnected from the message bus without providing a reply.

Also changes the default values for DBus service name, object path
and interface name.

Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr>
2023-06-06 10:18:26 -07:00
..
src vmm: dbus: graceful shutdown of the DBusApi thread 2023-06-06 10:18:26 -07:00
Cargo.toml vmm: dbus: implement the D-Bus API 2023-06-06 10:18:26 -07:00