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§
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.Nonewhen 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.