Add timeout support to host control
On timeout, send error signal for all commands within the queue
Change-Id: Ic995fd4b057bd83f121a3deec405a26e0991e9a2
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/systemintfcmds.cpp b/systemintfcmds.cpp
index 999e710..23e81ba 100644
--- a/systemintfcmds.cpp
+++ b/systemintfcmds.cpp
@@ -182,8 +182,12 @@
sdbusplus::server::manager::manager objManager(*sdbus,
objPathInst.c_str());
+ // Get the sd_events pointer
+ auto events = ipmid_get_sd_event_connection();
+
host = new phosphor::host::Host(*sdbus,
- objPathInst.c_str());
+ objPathInst.c_str(),
+ events);
sdbus->request_name(CONTROL_HOST_BUSNAME);