diff --git a/redislite/client.py b/redislite/client.py index bd4843f..2f012b1 100644 --- a/redislite/client.py +++ b/redislite/client.py @@ -107,7 +107,7 @@ def _cleanup(self, sys_modules=None): time.sleep(.1) if process.is_running() and process.pid != 0: logger.warning('Redis graceful shutdown failed, forcefully killing pid %r', self.pid) - os.kill(self.pid, signal.SIGKILL) + os.kill(process.pid, signal.SIGKILL) except psutil.NoSuchProcess: pass self.socket_file = None