In the previous recipe, we've seen two ways to start a new process where the parent always waits for their children to finish the task. This is not always the case. Sometimes, a parent should be able to kill the child process. In this recipe, we will see an example of how to do that.
Killing a process
Getting ready
It's important to go through the Starting a new process recipe as a prerequisite.
How to do it...
In this section, we create a program where a parent process forks its child process, the child process will do an infinite loop...