If enabled (default), bootstrap child processes install
PR_SET_PDEATHSIG(SIGKILL) so the kernel reaps them if the
parent dies unexpectedly. This is a production safety net
against leaked children; tests usually disable it via
std::env::set_var("HYPERACTOR_MESH_BOOTSTRAP_ENABLE_PDEATHSIG", "false").
When true: if stdio is piped, each child’s StreamFwder
also forwards lines to a host-scoped FileAppender managed by
the BootstrapProcManager. That appender creates exactly two
files per manager instance—one for stdout and one for
stderr—and all child processes’ lines are multiplexed into
those two files. This can be combined with
MESH_ENABLE_LOG_FORWARDING (“stream+local”).
Maximum number of child terminations to run concurrently
during bulk shutdown. Prevents unbounded spawning of
termination tasks (which could otherwise spike CPU, I/O, or
file descriptor load).
Per-child grace window for termination. When a shutdown is
requested, the manager sends SIGTERM and waits this long for
the child to exit before escalating to SIGKILL.
Entry point to processes managed by hyperactor_mesh. Any process that is part
of a hyperactor_mesh program should call bootstrap, which then configures
the process according to how it is invoked.