title: running xvfb-run on OS X 10.11
body: <p>Is it possible to get xvfb-run to work in the newest version of OS X? I've installed XQuartz and Xvfb runs the scripts with the following command:</p>
  
  <pre><code>Xvfb :4000 &amp; export DISPLAY=:4000 &amp; rspec
  </code></pre>
  
  <p>instead of this one:</p>
  
  <pre><code>xvfb-run rspec
  </code></pre>
  
  <p>This is however not without fault, either the temp file "x4000-lock" will not get removed after the script is finished and stop Xvfb to start up again or I'll recieve this error next time the script runs:</p>
  
  <blockquote>
    <p>[2] 13220
    [3] 13221
    _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
    _XSERVTransMakeAllCOTSServerListeners: server already running
    (EE) 
    Fatal server error:
    (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
    Run options: include {:focus=>true}</p>
  </blockquote>
  
  <p>This error is also recieved on a linux system so i Suspect "xvfb-run" is doing something more in the background and thus wondering how to get that running in OS X </p>