summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-12-05 14:15:28 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-12-17 23:34:16 +0000
commit4c15bb1768765e06060a4cde3b22e7bc8896574f (patch)
tree190e200b321212df8078ff5db80694c7ad615e74
parentfd4fa34d5680b68d0669f5e3a799556f0d73a9c1 (diff)
downloadphosphor-mboxbridge-4c15bb1768765e06060a4cde3b22e7bc8896574f.tar.gz
phosphor-mboxbridge-4c15bb1768765e06060a4cde3b22e7bc8896574f.zip
mboxd: Set BMC_EVENT_PROTOCOL_RESET on startup
This resolves skiboot failing to receive the mboxd termination message if mboxd has been killed unexpectedly or due to some race on shutdown where the message fails to propagate. Change-Id: I7a0974fc17f6853ac62c1f5f7b43d2e367260cf6 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--mboxd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mboxd.c b/mboxd.c
index 54815b8..84bbf69 100644
--- a/mboxd.c
+++ b/mboxd.c
@@ -414,6 +414,7 @@ int main(int argc, char **argv)
/* We're ready to go, alert the host */
context->bmc_events |= BMC_EVENT_DAEMON_READY;
+ context->bmc_events |= BMC_EVENT_PROTOCOL_RESET;
/* Alert on all supported transports */
rc = protocol_events_put(context, mbox_ops);
OpenPOWER on IntegriCloud