[Python-apps-commits] r10277 - in packages/debomatic/trunk/debian (4 files)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Thu Dec 19 20:32:34 UTC 2013


    Date: Thursday, December 19, 2013 @ 20:32:33
  Author: dktrkranz
Revision: 10277

Remove setpgrp call to fix endless loop in threads

Added:
  packages/debomatic/trunk/debian/patches/
  packages/debomatic/trunk/debian/patches/series
  packages/debomatic/trunk/debian/patches/setpgrp.patch
Modified:
  packages/debomatic/trunk/debian/changelog

Modified: packages/debomatic/trunk/debian/changelog
===================================================================
--- packages/debomatic/trunk/debian/changelog	2013-12-19 20:28:09 UTC (rev 10276)
+++ packages/debomatic/trunk/debian/changelog	2013-12-19 20:32:33 UTC (rev 10277)
@@ -1,5 +1,7 @@
 debomatic (0.11-2) UNRELEASED; urgency=low
 
+  * debian/patches/setpgrp.patch:
+    - Remove setpgrp call to fix endless loop in threads (Closes: #690311).
   * debian/control:
     - Suggest apt-utils and devscripts.
 

Added: packages/debomatic/trunk/debian/patches/series
===================================================================
--- packages/debomatic/trunk/debian/patches/series	                        (rev 0)
+++ packages/debomatic/trunk/debian/patches/series	2013-12-19 20:32:33 UTC (rev 10277)
@@ -0,0 +1 @@
+setpgrp.patch

Added: packages/debomatic/trunk/debian/patches/setpgrp.patch
===================================================================
--- packages/debomatic/trunk/debian/patches/setpgrp.patch	                        (rev 0)
+++ packages/debomatic/trunk/debian/patches/setpgrp.patch	2013-12-19 20:32:33 UTC (rev 10277)
@@ -0,0 +1,23 @@
+Description: Remove setpgrp call to fix endless loop in threads
+Author: Luca Falavigna <dktrkranz at debian.org>
+
+Index: debomatic-0.11/Debomatic/threadpool.py
+===================================================================
+--- debomatic-0.11.orig/Debomatic/threadpool.py	2013-06-05 15:18:24.000000000 +0200
++++ debomatic-0.11/Debomatic/threadpool.py	2013-12-19 21:30:26.655898839 +0100
+@@ -17,7 +17,6 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ 
+-from os import setpgrp
+ from Queue import Queue
+ from threading import Thread
+ from traceback import print_exc
+@@ -34,7 +33,6 @@
+     def run(self):
+         while True:
+             func, args, kargs, jobs = self.tasks.get()
+-            setpgrp()
+             try:
+                 func()
+             except (RuntimeError, SystemExit):




More information about the Python-apps-commits mailing list