detail Namespace
Definition
Functions Index
| tl::expected< std::string, std::string > | readProcessMaps () |
|
Read the full text of /proc/self/maps. More... | |
Functions
readProcessMaps()
| inline |
Read the full text of /proc/self/maps.
Exposed only so tests can assert on the live process's actual maps content (e.g. that a fork-linked test binary really shows the fork loaded) rather than only on the pass/fail outcome of processHasMixedBehaviorTreeLibraries(). Not part of the supported API surface.
A robot-motion startup guard must fail closed on an inconclusive result, not just on a positive detection (see AGENTS.md). A partial or failed read of /proc/self/maps must not silently look like a clean "no mixed load" result, so this checks the stream for read errors and rejects an empty read — a live process's maps listing is never empty.
Definition at line 35 of file btcpp_mixed_load_guard.hpp.
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.