title: exec returning 255
body: <p>I have my code running on the Mac and I am getting a 255 return code from exec.
  The following is the code:</p>
  
  <pre><code>    ret = execvp(pArgs[0], pArgs);  
  
      if (ret &lt; 0) 
  {
          ret = errno;
          exit(ret);
          return false;
      }
  else if (processId &lt; 0) 
  {
      // fork() failed    
      return false;
      } 
  else if(Wait)
  {
      // forked successfuly so wait for exit
      if(waitpid(processId, &amp;childstatus, 0) == processId)
      {
          // codesign command terminted, get return code
          if(WIFEXITED(childstatus))
          {
              if(pCmdRetStatus != NULL)
                  *pCmdRetStatus = WEXITSTATUS(childstatus);
          }
  
      }   
  }
  </code></pre>
  
  <p>Any thoughts on why the 255? Essentially an hdiutil call, a lot of times, I get 255.</p>