File: join-threads-for-concurrency.patch

package info (click to toggle)
macsyfinder 2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 123,832 kB
  • sloc: python: 18,831; xml: 892; sh: 46; makefile: 16
file content (35 lines) | stat: -rw-r--r-- 1,500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: The unpatched code does not make much sense as this is iterating over all threads
 and later joining one of them. Instead keep joining rest of the threads, as was likely the intention
Author: Nilesh Patra <nilesh@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028774
Forwarded: https://github.com/gem-pasteur/macsyfinder/issues/58
Last-Update: 2023-01-16
--- a/tests/test_Report.py
+++ b/tests/test_Report.py
@@ -370,7 +370,7 @@
         for t in threading.enumerate():
             if t is main_thread:
                 continue
-        t.join()
+            t.join()
 
         #          gene, model,     hit_id,        hit_seq_length replicon_name, pos_hit, i_eval,  score,
         #          profile_coverage, sequence_coverage, begin_match, end_match
@@ -461,7 +461,7 @@
         for t in threading.enumerate():
             if t is main_thread:
                 continue
-        t.join()
+            t.join()
 
         #          gene, model,     hit_id,        hit_seq_length replicon_name, pos_hit, i_eval,  score,
         #          profile_coverage, sequence_coverage, begin_match, end_match
@@ -540,7 +540,7 @@
         for t in threading.enumerate():
             if t is main_thread:
                 continue
-        t.join()
+            t.join()
 
         #          gene, model,     hit_id,        hit_seq_length replicon_name, pos_hit, i_eval,  score,
         #          profile_coverage, sequence_coverage, begin_match, end_match