mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-31 08:55:31 +00:00
f00df25d40
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>