Hmm... waitpid is roughly there.