Skip to content

ProcWait

Description

Block until the child exits.

Success

Returns PROC_STATUS_COMPLETED when the child exits normally, or PROC_STATUS_TERMINATED when the child was killed by a signal / external action.

Failure

Returns PROC_STATUS_ERROR; the cause is logged.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    ProcStatus ProcWait(Proc *proc) {
        if (!proc) {
            LOG_FATAL("Invalid argument");
Last updated on