Skip to content

ProcWaitFor

Description

Block for up to timeout_ms milliseconds waiting for the child. Pass 0 for infinite wait.

Success

Returns PROC_STATUS_COMPLETED, PROC_STATUS_TERMINATED, or PROC_STATUS_RUNNING if the timeout elapsed first.

Failure

Returns PROC_STATUS_ERROR; the cause is logged.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    ProcStatus ProcWaitFor(Proc *proc, u64 timeout_ms) {
        if (!proc) {
            LOG_FATAL("Invalid arguments");
Last updated on