Skip to content
ProcGetExitCode

ProcGetExitCode

Description

Exit code of the child. Only meaningful after ProcWait / ProcWaitFor reports completion.

Success

Returns the child’s exit code.

Failure

Returns -1 if the child has not yet exited or proc is invalid.

Usage example (Cross-references)

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