title: PHP hanging while exec() bash script
body: <p>I have some lines of code that look like this...</p>
  
  <pre><code>exec($this-&gt;path.' start &gt; /dev/null 2&gt;&amp;1 &amp;');
  return ['status' =&gt; 'Command executed'];
  </code></pre>
  
  <p><code>$this-&gt;path</code> is a shell script, start is an argument to the shell script and I believe the rest of the line is suppose to dump any response so the php script can continue running. It is not working like it should, php is successfully launching the shell script (which launches a game server) however php just hangs until I shut the server down using the shell. When I shut the server down with the shell it finishes executing and I receive the 'command executed' response. I've also disabled enforcement of SELinux to make sure it isn't interfering.</p>
  
  <p>Running Linux - Fedora 21 and the built in PHP development server.</p>