title: Waiting for execvp in main
body: <pre><code>int main()
  {
      ...
      if(!fork())
          {
              execvp(cmdName,cmdParam);
          }
      printf("In main()...");
  return(0);
  }
  </code></pre>
  
  <ol>
  <li>Assuming I have correctly passed the cmdName &amp; cmdParam arguments, how do I wait for the process created by execvp to finish, before resuming the execution of main()?</li>
  <li>Does the execvp() create a process which is a child of the newly fork()ed process? </li>
  </ol>