How far a process has got, as Process_Result.type: UNSTARTED (nothing was created), STILL_RUNNING, FAILED_TO_LAUNCH
(run_command could not start the program) and EXITED with its exit_code. SIGNALED is never produced on Windows; a
process that was killed is EXITED.
result, _, _, _ := run_command("cmd.exe", "/c", "exit 3", timeout_ms = 5000);
assert(result.type == .EXITED && result.exit_code == 3);Doesn't run in the browser (only on windows).
Members
- UNSTARTED
- STILL_RUNNING
- FAILED_TO_LAUNCH
- EXITED
- SIGNALED