[diffoscope] 01/01: main: Clean all temp files in signal handler thread instead of attempting to bubble exception back to the main thread. (Closes: #852013)
Chris Lamb
chris at chris-lamb.co.uk
Tue Feb 7 23:50:52 CET 2017
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit f0343d8363bd27c5e47f427ad9fd4658761e21e9
Author: Chris Lamb <lamby at debian.org>
Date: Wed Feb 8 11:47:15 2017 +1300
main: Clean all temp files in signal handler thread instead of attempting to bubble exception back to the main thread. (Closes: #852013)
Signed-off-by: Chris Lamb <lamby at debian.org>
---
diffoscope/main.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/diffoscope/main.py b/diffoscope/main.py
index 8f03808..3c48a6c 100644
--- a/diffoscope/main.py
+++ b/diffoscope/main.py
@@ -255,8 +255,8 @@ def run_diffoscope(parsed_args):
def sigterm_handler(signo, stack_frame):
- sys.exit(2)
-
+ clean_all_temp_files()
+ os._exit(2)
def main(args=None):
if args is None:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list