title: System() fails with return value 255/-1 (8 bit representation)
body: <p>I have an executable, which has a few system commands (basically it does copying and running script files).  When I test in standalone (launching the executable myself as with sudo) <code>system()</code> is working fine.</p>
  
  <p>Now I integrate my executable with <code>supervisord</code>. Functionality of my executable is working fine, but the <code>system()</code> command fails with 255 / -1 (8 bit representation). </p>
  
  <p>List of things I checked:</p>
  
  <ol>
  <li>The current working directory of the process is correct</li>
  <li>Supervisord and my process are running as root</li>
  <li>chown of directory and file are root </li>
  </ol>
  
  <p>Any other suggestions?</p>