[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.0-22-ge53e415

Luca Bruno lethalman88 at gmail.com
Wed Mar 25 22:56:46 UTC 2009


The following commit has been merged in the master branch:
commit e019442e17f23b622d07d1f2b4ab6a768ec5777c
Author: Luca Bruno <lethalman88 at gmail.com>
Date:   Tue Mar 24 22:30:54 2009 +0100

    Set daemon flag to threads so that the application exits once the main thread is terminated. Remove some debugging prints

diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index f61dfaa..10429aa 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -285,6 +285,8 @@ class BugPage (gtk.EventBox, threading.Thread):
     def __init__ (self, dialog, number, queryonly, bts, mirrors, http_proxy, archived):
         threading.Thread.__init__ (self)
         gtk.EventBox.__init__ (self)
+        self.setDaemon (True)
+
         self.dialog = dialog
         self.assistant = self.dialog.assistant
         self.application = self.assistant.application
@@ -401,6 +403,8 @@ class BugsDialog (gtk.Dialog):
 class ReportbugApplication (threading.Thread):
     def __init__ (self):
         threading.Thread.__init__ (self)
+        self.setDaemon (True)
+
         self.queue = Queue ()
         self.next_value = None
         
@@ -1096,7 +1100,6 @@ class SystemPage (Page):
         self.set_page_complete (True)
 
     def execute (self, cmdline):
-        print cmdline
         self.terminal.fork_command ('/bin/bash', ['/bin/bash', '-c', cmdline])
 
 class ProgressPage (Page):

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list