[Fix] lpcsnoop service exit unsuccessfully

[Issue] when BMC code reset, the lpcsnoop service exit unsuccessfully.

[Root Cause] return exit code 1 when caught SIGTERM signal.

https://github.com/openbmc/phosphor-host-postd/blob/master/main.cpp#L368
https://github.com/openbmc/sdeventplus/blob/master/src/sdeventplus/event.hpp#L115

Tested:
Service exit successfully

Signed-off-by: Sunita Kumari <sunitax.kumari@intel.com>
Change-Id: I47cc6d31742f1595231fe22e345ea955ad41c377
1 file changed
tree: 91ada686ebe10d93ec6bc07027dbe9e82180ebb3
  1. ipmisnoop/
  2. lpcsnoop/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .gitignore
  7. 7seg.cpp
  8. 80-7seg.rules
  9. example.cpp
  10. LICENSE
  11. lpcsnoop.service.in
  12. main.cpp
  13. meson.build
  14. meson_options.txt
  15. OWNERS
  16. postcode-7seg@.service
  17. README.md
README.md

LPC Snoop Broadcast Daemon

This is a simple daemon which reads a file interface from an lpc-snoop driver and broadcasts the values read on DBus.