execvp : Using this command, the created child process does not have to run the same program as the parent process does. The exec type system calls allow a process to run any program files, which include a binary executable or a shell script .
What does Execvp return?
execvp() returns a negative value if the execution fails (e.g., the request file does not exist).
Does Execvp fork?
So, whenever you use execvp() , if you want to maintain your C program, you generally use fork() to first spawn a new process, and then use execvp() on that new process. This is called the “fork-exec” model, and is the standard practice for running multiple processes using C.