[PATCH] Simplify exit thread evaluation
Sebastian at SSpaeth.de
Wed Dec 1 22:01:18 GMT 2010
On Wed, 1 Dec 2010 14:02:01 -0500 (EST), Leif Walsh <leif.walsh at gmail.com> wrote:
> Just tested this and it blocks SIGINT from killing offlineimap. I don't
> remember if you need to set a signal handler or change how you use the
> queue. Another solution may be to put this polling logic in another
> daemon thread and let the main thread exit without waiting for it. This
> is without much knowledge of the program's architecture, I'll have better
> suggestions after I've poked around a bit longer.
Thanks for letting me know about the SIGINT issue. It seems our
sighandler doesn't work if the code is stuck at one of those blocking
Queue.get(), which I had not considered. Please ignore this patch, I'll
come up with other ways to break the code base soon :).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the OfflineIMAP-project