From 016292f19ccc10b189f2b11eb6009ed5ed87d889 Mon Sep 17 00:00:00 2001 From: Corey Goldberg Date: Tue, 12 Jan 2016 18:45:45 -0500 Subject: [PATCH] use terminate instead of kill so Xvfb can clean up lock files --- xvfbwrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xvfbwrapper.py b/xvfbwrapper.py index 11739e1..7d3916a 100644 --- a/xvfbwrapper.py +++ b/xvfbwrapper.py @@ -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