Skip to content

Commit

Permalink
Merge pull request #10 from koterpillar/patch-1
Browse files Browse the repository at this point in the history
Do not pass open file descriptors to Xvfb
  • Loading branch information
cgoldberg committed Dec 27, 2015
2 parents 7bb52b9 + b30b75e commit f946e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xvfbwrapper.py
Expand Up @@ -50,7 +50,8 @@ def start(self):
with open(os.devnull, 'w') as fnull:
self.proc = subprocess.Popen(self.xvfb_cmd,
stdout=fnull,
stderr=fnull)
stderr=fnull,
close_fds=True)
time.sleep(0.2) # give Xvfb time to start
ret_code = self.proc.poll()
if ret_code is None:
Expand Down

0 comments on commit f946e43

Please sign in to comment.