process: Make it possible to wait on Pids