FIX signal handling

Controller receive them (and ignores them)
This commit is contained in:
boyska 2016-09-08 20:49:02 +02:00
parent 2bbbf534eb
commit 24ad892222
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -71,7 +71,7 @@ def main():
def sig(*args):
print('invoked sig', args)
larigira.controller.q.put('signal', *args)
larigira.controller.q.put(dict(kind='signal', args=args))
gevent.signal(signal.SIGHUP, sig, signal.SIGHUP)
gevent.wait()