Correct signals problem
This commit is contained in:
parent
8195064f11
commit
168435a827
|
@ -35,12 +35,12 @@ class OSDaemon(object):
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
)
|
)
|
||||||
|
|
||||||
def signal(self, signal):
|
def signal(self, sent_signal):
|
||||||
signal_map = {
|
signal_map = {
|
||||||
'hup': signal.SIGHUP,
|
'hup': signal.SIGHUP,
|
||||||
'int': signal.SIGINT
|
'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):
|
def run_os_daemon(command_string, background=False, environment=None, return_pid=False):
|
||||||
command = command_string.split()
|
command = command_string.split()
|
||||||
|
|
Loading…
Reference in New Issue