Skip to main content

Module pinned_executable

Module pinned_executable 

Source
Expand description

Process-lifetime re-exec identity, independent of the deployment pathname.

Placement may rename a new binary over the daemon’s fixed deployment pathname while it serves requests. Its children must keep using the startup image. Standalone hosts use versioned paths and retain normal executable discovery.

Constants§

TASK_IMAGE_DIR

Functions§

capture_at_startup
On macOS, hold the startup executable open without creating a persistent pin. Metadata-only CLI modes may call this; other platforms need no handle.
cleanup_at_exit
Remove this daemon’s private launch directory, including exits that skip Drop. Startup cleanup handles crashes and any best-effort removal failures.
initialize
Called once by the daemon, before any serving-process child can be spawned.
is_dead_pin_path
linux_task_pin
A native profile may read and execute the task’s exact launcher, not its containing cache. Outside launch setup there is no task grant to add.
path
Return the daemon’s startup pin, or normal executable discovery for standalone and library-only hosts that have not initialized a pin.
retain_task_environment
Non-launcher plans have no launcher pathname to carry the retained image. Redirect their request overrides before either the pipe or PTY adapter runs.
shims_dir
startup_image_metadata
The metadata of the executable image this process started from, even after another binary was renamed over its path: on Linux the image the kernel holds, on macOS the file opened at startup (see capture_at_startup). Elsewhere a running executable cannot be replaced, so its path is read. None when the image cannot be examined.
task_environment
task_executable
with_task_image
Freeze the launcher and shim into the task’s own artifact lifetime before constructing a native profile or launching an unconfined shell. Foreground tasks need the same lifetime because they can be promoted to background.