Skip to main content

Module process_tree

Module process_tree 

Source
Expand description

Process-tree cleanup setup for the broker.

The broker can launch backend processes. Installing cleanup before argument dispatch ensures later serve modes inherit the same parent-death / kill-on-close containment behavior from process start.

Structs§

MacosSupervisorContract
Concrete macOS supervisor contract for Phase 5 process-tree cleanup.

Enums§

MacosKqueueFilter
kqueue filter used by the macOS supervisor child.
MacosKqueueNote
kqueue process note used by the macOS supervisor child.
MacosSupervisorExitAction
Action performed by the macOS supervisor child after broker exit.
MacosSupervisorRaceGuard
Required startup race guard for the macOS supervisor child.
MacosSupervisorRegistrationBarrier
Required startup barrier for the macOS supervisor child.
MacosSupervisorWatchPid
PID watched by the macOS supervisor child.
ProcessTreeCleanup
Cleanup mechanism installed, or concrete lifecycle contract selected, for the current broker process.
ProcessTreeError
Errors returned while installing process-tree cleanup.

Constants§

MACOS_SUPERVISOR_KILL_DEADLINE
Maximum Phase 5 cleanup budget for a macOS backend after broker exit.

Functions§

cleanup_target
Return the cleanup mechanism this platform attempts to install.
install_cleanup
Install process-tree cleanup for the current broker process.
macos_supervisor_contract
Return the concrete macOS kqueue-supervisor contract for Phase 5.