Skip to main content

Module process_control

Module process_control 

Source

Functions§

bind_child_to_daemon_lifetime
Tie a freshly spawned child (and what it starts afterwards) to the daemon’s life: on Windows it joins the daemon-wide kill-on-close job, so a killed or crashed daemon takes its process trees with it. Best effort: a failure (say, a parent job that forbids nesting) is logged and the child runs on. A no-op elsewhere, where process groups do this job.
configure_command_for_process_group
Configure commands to run in their own process group (Unix). This allows terminating the full process tree on cancel/timeout.
send_sigkill
Send SIGKILL to a process group (or fallback process pid).
send_sigterm
Send SIGTERM to a process group (or fallback process pid).
terminate_process_tree
Best-effort process tree termination with TERM->KILL escalation.