Block SIGCHLD before calling sd_event_add_child

Based on the documentation sd_event_add_child will return
EBUSY if the SIGCHLD is not blocked, so adding the code
to block the SIGCHLD

Testing:
      Without the patch CreateDump will fail and with the fix
the CreateDump is working

Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I33f250bdb472dca08588c48ffa663d561bc2bc84
1 file changed
tree: 37d30e6cc9ed39e1635339929b0ae6e7667d4be1
  1. offload-extensions/
  2. tools/
  3. xyz/
  4. .clang-format
  5. .gitignore
  6. bmc_dump_entry.cpp
  7. bmc_dump_entry.hpp
  8. bootstrap.sh
  9. configure.ac
  10. core_manager.cpp
  11. core_manager.hpp
  12. core_manager_main.cpp
  13. dump_entry.cpp
  14. dump_entry.hpp
  15. dump_internal.hpp
  16. dump_manager.cpp
  17. dump_manager.hpp
  18. dump_manager_main.cpp
  19. dump_serialize.cpp
  20. dump_serialize.hpp
  21. dump_utils.cpp
  22. dump_utils.hpp
  23. elog_watch.cpp
  24. elog_watch.hpp
  25. errors_map.mako.hpp
  26. errors_map_gen.py
  27. example_errors_watch.yaml
  28. ffdc
  29. LICENSE
  30. MAINTAINERS
  31. Makefile.am
  32. offload-extensions.hpp
  33. README.md
  34. system_dump_entry.cpp
  35. system_dump_entry.hpp
  36. watch.cpp
  37. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.