From 564e3286986eb64dafc1d6c3253c1848c9987752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Sandstr=C3=83om?= Date: Sun, 7 Feb 2016 21:05:35 +0000 Subject: [PATCH] fix sigterm crash --- homeassistant/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/__main__.py b/homeassistant/__main__.py index d7cfd0a2f00..b30893b1bbd 100644 --- a/homeassistant/__main__.py +++ b/homeassistant/__main__.py @@ -243,8 +243,8 @@ def run_hass_process(hass_proc): requested_stop = threading.Event() hass_proc.daemon = True - def request_stop(): - """ request hass stop """ + def request_stop(*args): + """ request hass stop, *args is for signal handler callback """ requested_stop.set() hass_proc.terminate()