Executing execvp() in Child process after fork() still taking over parent process?

I’m executing two bash command ps (which is valid bash command to show processes info) and abc (Invalid bash command) using execvp() inside a child process after creating it with by fork() The problem is once execvp() fails parent process is taken over by child process as we can from the output of screenshot. I… Read More Executing execvp() in Child process after fork() still taking over parent process?