mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 08:34:43 +00:00
Double Ctrl-C stops checking immediately without cleanup.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3696 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
9c56f03ae3
commit
963feb2288
5 changed files with 1281 additions and 1264 deletions
|
|
@ -35,6 +35,11 @@
|
|||
Changed: linkcheck/checker/mailtourl.py
|
||||
Closes: SF bug #1942463
|
||||
|
||||
* Double Ctrl-C aborts checking immediately, without cleanup.
|
||||
Type: feature
|
||||
Changed: linkcheck/director/__init__.py
|
||||
Closes: SF bug #1720104
|
||||
|
||||
4.8 "Hallam Foe" (released 16.12.2007)
|
||||
|
||||
* Fix message typo for not disclosing information.
|
||||
|
|
|
|||
1
debian/changelog
vendored
1
debian/changelog
vendored
|
|
@ -2,6 +2,7 @@ linkchecker (4.9-1) unstable; urgency=low
|
|||
|
||||
* New upstream release.
|
||||
* Use debhelper v6
|
||||
* Double Ctrl-C quits without cleanup (Closes: #476623)
|
||||
|
||||
-- Bastian Kleineidam <calvin@debian.org> Fri, 14 Mar 2008 12:23:45 +0100
|
||||
|
||||
|
|
|
|||
|
|
@ -103,9 +103,19 @@ def abort (aggregate):
|
|||
break
|
||||
except KeyboardInterrupt:
|
||||
linkcheck.log.warn(linkcheck.LOG_CHECK, _("keyboard interrupt; force shutdown"))
|
||||
print_active_threads(aggregate)
|
||||
import sys
|
||||
sys.exit(1)
|
||||
force_shutdown()
|
||||
|
||||
|
||||
def force_shutdown ():
|
||||
"""Force shutdown, not finishing anything."""
|
||||
import os
|
||||
if os.name == "posix":
|
||||
# POSIX systems seem to do fine with sys.exit()
|
||||
import sys
|
||||
sys.exit(1)
|
||||
else:
|
||||
# forced exit without cleanup
|
||||
os._exit(1)
|
||||
|
||||
|
||||
def get_aggregate (config):
|
||||
|
|
|
|||
1022
po/linkchecker.pot
1022
po/linkchecker.pot
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue