diff options
author | Benjamin Fair <benjaminfair@google.com> | 2018-10-19 17:22:53 -0700 |
---|---|---|
committer | Benjamin Fair <benjaminfair@google.com> | 2018-10-23 11:10:29 -0700 |
commit | 1c4d3d34af613ad511b779eb7375562486bb2758 (patch) | |
tree | 1d393a8505c279bdb061e97ce234607bdb5178b5 /manager.cpp | |
parent | c9ad5ffbca32b8454b3072fad184ab1e7cf93119 (diff) | |
download | phosphor-ipmi-blobs-1c4d3d34af613ad511b779eb7375562486bb2758.tar.gz phosphor-ipmi-blobs-1c4d3d34af613ad511b779eb7375562486bb2758.zip |
main: catch exceptions when loading blob handlers
If an error occurs while attempting to load the blob handlers (such as a
filesystem error), the uncaught exception will crash the entire IPMI
daemon. Instead, catch the exception and print an error message.
Tested: ipmid doesn't crash when /usr/lib/blobs-ipmid is missing
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Ic316f6e5aa3c4bc6eba4fa2e561b338f4b20f606
Diffstat (limited to 'manager.cpp')
0 files changed, 0 insertions, 0 deletions