use terminate instead of kill so Xvfb can clean up lock files

This commit is contained in:
Corey Goldberg 2016-01-12 18:45:45 -05:00
parent 5df515efbc
commit 016292f19c
1 changed files with 2 additions and 2 deletions

View File

@ -69,9 +69,9 @@ class Xvfb:
self._set_display_var(self.orig_display)
# TODO:
# fix leaking X displays.
# (killing Xvfb process doesn't clean up the underlying X11 server)
# killing Xvfb process doesn't up the lock files (/tmp/.X*-lock)
if self.proc is not None:
self.proc.kill()
self.proc.terminate()
self.proc.wait()
self.proc = None