Skip to main content

Module process

Module process 

Source
Expand description

PID + process start time: the PID-reuse-safe liveness identity used for operation locks (§2) and daemon supervision (§3). Bounded subprocess waits (Stripe / launchctl / reaper children) live here so a hung helper cannot pin the control plane forever.

Structs§

ProcessStamp
Identifies one incarnation of one process.

Enums§

CaptureFailure
TimedCommand
Result of run_with_timeout.

Constants§

COMMAND_STDERR_LIMIT
COMMAND_STDOUT_LIMIT
Stripe JSON can be larger than a console log. Neither stream may grow without a limit.

Functions§

effective_user_id
kill_process_group
SIGKILL the process group whose leader is pid (set by process_group(0)).
kill_process_tree
SIGKILL root and every descendant, including children that created their own process group (Stripe CLI helpers).
kill_process_tree_stamped
Stop only the supplied process incarnation and the descendants observed under it.
real_user_id
run_with_timeout
Capture a child while this process remains alive. The internal helper uses this primitive; controller callers must use helper_command::HelperCommand so the deadline survives controller death. Incomplete or excess output cannot finish.