docker-offlineimap/offlineimap
Sebastian Spaeth 383ae9e647 Catch SystemExit and KeyboardInterrupt exceptions
Previously we did not catch KeyboardInterrupts explicitly as all of the
code was executed in forked child threads which would never receive
Ctrl-c exceptions. With the upcoming single threaded modus, this code
can be run in the main thread however, so we need to take care of
KeyboardInterrupts explicitly. As this is pretty highlevel code, we also
protect against receiving a SystemExit exception which is raised e.g. in
the ui.terminate() code by calling sys.exit().

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-01-14 19:25:11 +01:00
..
folder Merge branch 'ss/folder/base_clean-threadutil-import' into next 2011-01-10 18:58:05 +01:00
repository repository/*: replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
ui Merge branch 'ss/ui-remove-detector' into next 2011-01-07 19:38:12 +01:00
__init__.py Define version constants etc in __init__.py 2010-12-22 19:45:01 +01:00
accounts.py Catch SystemExit and KeyboardInterrupt exceptions 2011-01-14 19:25:11 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplibutil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
imapserver.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
imaputil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
init.py Catch SystemExit and KeyboardInterrupt exceptions 2011-01-14 19:25:11 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py remove unneeded includes from syncmaster.py 2010-12-09 19:52:48 +01:00
threadutil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00