]>
Commit | Line | Data |
---|---|---|
91d1c8a9 | 1 | From 2121826fbbca5ab407bafcd570e668b6c9afd49e Mon Sep 17 00:00:00 2001 |
6ef17b23 | 2 | From: Michael Tremer <michael.tremer@ipfire.org> |
91d1c8a9 MT |
3 | Date: Tue, 5 Feb 2013 22:06:51 +0100 |
4 | Subject: [PATCH 12/17] Revert "builder: Remove pids from list of running jobs | |
5 | when job has finished." | |
6ef17b23 | 6 | |
91d1c8a9 | 7 | This reverts commit c3319c905d03176308e01175f344cf33bd926113. |
6ef17b23 | 8 | --- |
91d1c8a9 MT |
9 | python/pakfire/client/builder.py | 5 +---- |
10 | 1 file changed, 1 insertion(+), 4 deletions(-) | |
6ef17b23 MT |
11 | |
12 | diff --git a/python/pakfire/client/builder.py b/python/pakfire/client/builder.py | |
91d1c8a9 | 13 | index 2d6280c..9798cc4 100644 |
6ef17b23 MT |
14 | --- a/python/pakfire/client/builder.py |
15 | +++ b/python/pakfire/client/builder.py | |
91d1c8a9 | 16 | @@ -251,8 +251,6 @@ class PakfireDaemon(object): |
6ef17b23 MT |
17 | |
18 | # Finally, remove the process from the process list. | |
19 | self.processes.remove(process) | |
91d1c8a9 MT |
20 | - if self.pid2jobid.has_key(process.id): |
21 | - del self.pid2jobid[process.id] | |
6ef17b23 MT |
22 | |
23 | return ret | |
24 | ||
91d1c8a9 | 25 | @@ -276,6 +274,7 @@ class PakfireDaemon(object): |
6ef17b23 MT |
26 | for process in self.processes[:]: |
27 | job_id = self.pid2jobid.get(process.pid, None) | |
28 | if job_id and job_id in aborted_jobs: | |
91d1c8a9 | 29 | + |
6ef17b23 MT |
30 | # Kill the process. |
31 | log.info("Killing process %s which was aborted by the user." \ | |
32 | % process.pid) | |
91d1c8a9 | 33 | @@ -284,8 +283,6 @@ class PakfireDaemon(object): |
6ef17b23 MT |
34 | # Remove the process from the process list to avoid |
35 | # that is will be cleaned up in the normal way. | |
36 | self.processes.remove(process) | |
91d1c8a9 MT |
37 | - if self.pid2jobid.has_key(process.id): |
38 | - del self.pid2jobid[process.id] | |
6ef17b23 MT |
39 | |
40 | return True | |
41 | ||
42 | -- | |
91d1c8a9 | 43 | 1.8.1.2 |
6ef17b23 | 44 |