Implement the code that forks a new process and update the code that waits on an exited process to avoid busy waiting