Skip to main content

Module script_pipe

Module script_pipe 

Source
Expand description

Identity-bearing Unix script transport. The receiver validates before adopting a descriptor because runtimes may reuse inherited descriptor numbers for IPC.

Constants§

SCRIPT_FD
SCRIPT_FD_ENV

Functions§

handoff
Create close-on-exec sources; only ChildDescriptorSlots makes the reader inheritable in the intended child. Payload writes happen after spawn.
take
Take a pipe only after its type and inode match the advertised identity. A refusal leaves the descriptor untouched.