All the cool kids are doing it, changing how we register with signals
authorEd Page <eopage@byu.net>
Fri, 12 Feb 2010 01:46:22 +0000 (19:46 -0600)
committerEd Page <eopage@byu.net>
Fri, 12 Feb 2010 01:46:22 +0000 (19:46 -0600)
src/theonering.py

index 1bc7436..1e06a1d 100755 (executable)
@@ -63,7 +63,7 @@ def run_theonering(persist):
                gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb)
                shutdown_callback = quit
 
                gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb)
                shutdown_callback = quit
 
-       signal.signal(signal.SIGTERM, quit)
+       signal.signal(signal.SIGTERM, lambda: quit)
 
        try:
                manager = connection_manager.TheOneRingConnectionManager(shutdown_func=shutdown_callback)
 
        try:
                manager = connection_manager.TheOneRingConnectionManager(shutdown_func=shutdown_callback)