cfunction
src/core/os.c on line 632, column 1
(os/proc-wait proc)
Suspend the current fiber until the subprocess `proc` completes.
Once `proc` completes, return the exit code of `proc`. If called
more than once on the same core/process value, will raise an error.
When creating subprocesses using `os/spawn`, this function should
be called on the returned value to avoid zombie processes.