About distribution maintainers ([ANNOUNCE] OfflineIMAP v6.3.0 released)
Leif Walsh
leif.walsh at gmail.com
Mon Dec 13 08:46:02 GMT 2010
On Mon, 13 Dec 2010, Christoph Höger wrote:
> One thing that should be adressed are those 100% cpu crashes that occur
> quite regulary. I've already opened a thread on that topic. If somebody
> has an idea on howto debug those, I'd be glad to provide some hands.
This was addressed by Sebastian recently. I committed the fix locally,
here's the relevant part of the diff:
diff --git a/offlineimap/threadutil.py b/offlineimap/threadutil.py
index b516f68..8e96d31 100644
--- a/offlineimap/threadutil.py
+++ b/offlineimap/threadutil.py
@@ -113,10 +113,14 @@ def exitnotifymonitorloop(callback):
global exitthreads
while 1: # Loop forever.
try:
- thrd = exitthreads.get(False)
+ # We need a timeout to keep python from blocking signal
+ # handlers (http://bugs.python.org/issue1360), picked
+ # something large for now, could be more intelligently chosen
+ # in the future.
+ thrd = exitthreads.get(True, 120)
callback(thrd)
except Empty:
- time.sleep(1)
+ pass
--
Cheers,
Leif
More information about the OfflineIMAP-project
mailing list