Make CTRL-C message more clear
Signed-off-by: Edgar Hipp <ehipp@hotmail.fr> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
33384ec6fb
commit
89b40ec3af
@ -433,8 +433,9 @@ class OfflineImap(object):
|
|||||||
accounts.Account.set_abort_event(self.config, 2)
|
accounts.Account.set_abort_event(self.config, 2)
|
||||||
elif sig in (signal.SIGTERM, signal.SIGINT, signal.SIGHUP):
|
elif sig in (signal.SIGTERM, signal.SIGINT, signal.SIGHUP):
|
||||||
# tell each account to ABORT ASAP (ctrl-c)
|
# tell each account to ABORT ASAP (ctrl-c)
|
||||||
getglobalui().warn("Terminating NOW (this may "\
|
getglobalui().warn("Preparing to shutdown after sync (this may "\
|
||||||
"take a few seconds)...")
|
"take some time), press CTRL-C three "\
|
||||||
|
"times to shutdown immediately")
|
||||||
accounts.Account.set_abort_event(self.config, 3)
|
accounts.Account.set_abort_event(self.config, 3)
|
||||||
if 'thread' in self.ui.debuglist:
|
if 'thread' in self.ui.debuglist:
|
||||||
self.__dumpstacks(5)
|
self.__dumpstacks(5)
|
||||||
|
Loading…
Reference in New Issue
Block a user