1 |
tommy 09/03/29 14:12:11 |
2 |
|
3 |
Added: hplip-3.9.2-high_cpu_utilization_logout.patch |
4 |
Log: |
5 |
Version bump for bug 245136, thanks to Yar Odin and Daniel Pielmeier and fix bug 242498 thanks Daniel Santos for reporting |
6 |
(Portage version: 2.2_rc28/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/hplip/files/hplip-3.9.2-high_cpu_utilization_logout.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: hplip-3.9.2-high_cpu_utilization_logout.patch |
15 |
=================================================================== |
16 |
Index: hpdio.py |
17 |
=================================================================== |
18 |
--- hpdio.py (revision 10469) |
19 |
+++ hpdio.py (working copy) |
20 |
@@ -85,12 +85,20 @@ |
21 |
r, w, e = select.select([r2], [], [r2], 1.0) |
22 |
except KeyboardInterrupt: |
23 |
break |
24 |
+ except select.error, e: |
25 |
+ if e[0] == errno.EINTR: |
26 |
+ continue |
27 |
+ else: |
28 |
+ break |
29 |
|
30 |
if not r: continue |
31 |
if e: break |
32 |
|
33 |
m = ''.join([m, os.read(r2, fmt_size)]) |
34 |
|
35 |
+ if not m: |
36 |
+ break |
37 |
+ |
38 |
while len(m) >= fmt_size: |
39 |
response.clear() |
40 |
event = device.Event(*struct.unpack(fmt, m[:fmt_size])) |