sample waitpid

    man 2 waitpid