Skip to content

ProcDeinit

Description

Tear down a Proc. Closes any open fds / HANDLEs the parent held open for the child’s stdin/stdout/stderr pipes. Does NOT terminate the child – call ProcTerminate first if you want that. Safe on a zeroed (never-spawned) Proc. No allocator argument: the allocator handed to ProcInit is used transiently during spawn (only on Windows, for the cmdline buffer) and is not retained.

Success

Returns to the caller. *p is zeroed.

Failure

Function cannot fail. NULL p is a no-op.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    void ProcDeinit(Proc *proc) {
        if (!proc) {
            return;
Last updated on