diff --git a/daemon-common/daemon_lib/common.py b/daemon-common/daemon_lib/common.py index baf92d8c..255e5174 100644 --- a/daemon-common/daemon_lib/common.py +++ b/daemon-common/daemon_lib/common.py @@ -35,12 +35,12 @@ class OSDaemon(object): stderr=subprocess.PIPE, ) - def signal(self, signal): + def signal(self, sent_signal): signal_map = { 'hup': signal.SIGHUP, 'int': signal.SIGINT } - self.proc.send_signal(signal_map[signal]) + self.proc.send_signal(signal_map[sent_signal]) def run_os_daemon(command_string, background=False, environment=None, return_pid=False): command = command_string.split()