in reply to Parent process does not wait for Child processes to finish and exits after the waitpid statement

So the parent exits and you don't know why. First thing you should do: check its exit status to find out why.
  • Comment on Re: Parent process does not wait for Child processes to finish and exits after the waitpid statement