From c2e93aaf30794120413bb83c87e9a5cb3a257c8e Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Thu, 12 Jun 2014 09:53:37 -0400 Subject: [PATCH] Daemonize threads so that SIGINT (Ctrl-C) works again. --- lib/galaxy/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/app.py b/lib/galaxy/app.py index d41dde059ad..643206704eb 100644 --- a/lib/galaxy/app.py +++ b/lib/galaxy/app.py @@ -128,6 +128,7 @@ class UniverseApplication( object, config.ConfiguresGalaxyMixin ): from galaxy.util import heartbeat if heartbeat.Heartbeat: self.heartbeat = heartbeat.Heartbeat( fname=self.config.heartbeat_log ) + self.heartbeat.daemon = True self.heartbeat.start() # Enable the memdump signal catcher if configured and available if self.config.use_memdump: @@ -150,6 +151,7 @@ class UniverseApplication( object, config.ConfiguresGalaxyMixin ): self.control_worker = GalaxyQueueWorker(self, galaxy.queues.control_queue_from_config(self.config), galaxy.queue_worker.control_message_to_task) + self.control_worker.daemon = True self.control_worker.start() def shutdown( self ):