title: How to terminate a child process when using exec()
body: <p>I understand when a forked child process is created, that process can be terminated by exit(), but when the child executes another program (execvp(), execlp(), etc..) any code written after that is ignored. At that point how does the child process terminate? How does it tell the parent it has ended?
  Thanks!</p>