summaryrefslogtreecommitdiffstats
path: root/systemintfcmds.cpp
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-04-03 13:31:13 -0500
committerAndrew Geissler <andrewg@us.ibm.com>2017-05-09 12:51:59 -0500
commit8315970370d63b101bd0bd579bc1f697a3c8d07c (patch)
tree856438abae898d4edd29a6df9e6ccf5e1c28aa20 /systemintfcmds.cpp
parent857f54b71198dcb5a1d5acae98f0c0cb78298694 (diff)
downloadphosphor-host-ipmid-8315970370d63b101bd0bd579bc1f697a3c8d07c.tar.gz
phosphor-host-ipmid-8315970370d63b101bd0bd579bc1f697a3c8d07c.zip
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>
Diffstat (limited to 'systemintfcmds.cpp')
-rw-r--r--systemintfcmds.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/systemintfcmds.cpp b/systemintfcmds.cpp
index 999e710..23e81ba 100644
--- a/systemintfcmds.cpp
+++ b/systemintfcmds.cpp
@@ -182,8 +182,12 @@ void register_netfn_app_functions()
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);
OpenPOWER on IntegriCloud