Browse Source

Merge pull request #10 from koterpillar/patch-1

Do not pass open file descriptors to Xvfb
master
Corey Goldberg 6 years ago
parent
commit
f946e438b7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      xvfbwrapper.py

+ 2
- 1
xvfbwrapper.py View File

@ -50,7 +50,8 @@ class Xvfb:
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:


Loading…
Cancel
Save