std.ps.wait

std.ps

wait(pid) -> pid, status

Wait for a child process to terminate

Waits for the child process specified by pid to terminate and returns its PID and exit status. This is a blocking call.