Status
How a process that is not a child of this one exited.
Returned by Proc.wait.
Example
let p = proc.open $pid
p.terminate()
let status = p.wait()
if (status.code != nil)
echo "exited with $(status.code)"
Fields
code @ (Int | nil)The exit code.
Only Windows can obtain one for a process that is not a child; every other platform reports
nil, since reaping an arbitrary process is the parent's privilege there and a non-parent learns only that it is gone.