ProcGetStatus
Description
Current status of the child without blocking. Useful for polling alongside ProcWaitFor.
Success
Returns one of PROC_STATUS_RUNNING, PROC_STATUS_COMPLETED, or PROC_STATUS_TERMINATED.
Failure
Returns PROC_STATUS_ERROR if proc is invalid or the OS query failed (logged).
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Proc.c:579:
}
ProcStatus ProcGetStatus(Proc *proc) {
if (!proc) {
LOG_FATAL("Invalid argument");
Last updated on