Add a retry mechanism for introspection

Some processes, when starting up have long delays after registering on
the D-Bus that cause the mapper to timeout on introspection. The mapper
should be more resilient and retry several times before giving up.

This adds a 3X retry as a balance between never giving up and breaking
without cause.

Example errors before this change:
phosphor-mapper[245]: Introspect call failed with error: generic:110,
  Connection timed out on process: xyz.openbmc_project.CPUSensor path: /
phosphor-mapper[245]: Introspect call failed with error: generic:110,
  Connection timed out on process: xyz.openbmc_project.EntityManager path:
  /xyz/openbmc_project/EntityManager

Tested: Boot and see that there are no Introspect call failed timeuot
        messages.

Change-Id: I08c0219f445340588d973a2a19ade5a045b3f82e
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
2 files changed
tree: 519b7715c809a935134c752b4571c6fa02f0949c
  1. fail-monitor/
  2. libmapper/
  3. src/
  4. .clang-format
  5. .gitignore
  6. bootstrap.sh
  7. configure.ac
  8. LICENSE
  9. MAINTAINERS
  10. Makefile.am
  11. README.md
README.md

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`.