in reply to Finding if a child process has terminated

You can use the waitpid function with the WNOHANG flag in its last argument (its value is 1) for this.
  • Comment on Re: Finding if a child process has terminated