Skip to content

ProcGetId

Description

OS process ID of the child.

Success

Returns a positive pid.

Failure

Returns -1 if proc is invalid or not yet spawned.

Usage example (Cross-references)

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