1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

borg recreate: also catch SIGHUP

This commit is contained in:
Thomas Waldmann 2016-09-14 02:55:13 +02:00
parent 1287d1ae92
commit 57a3adb6b3

View file

@ -989,7 +989,8 @@ def interrupt(signal_num, stack_frame):
dry_run=args.dry_run)
with signal_handler(signal.SIGTERM, interrupt), \
signal_handler(signal.SIGINT, interrupt):
signal_handler(signal.SIGINT, interrupt), \
signal_handler(signal.SIGHUP, interrupt):
if args.location.archive:
name = args.location.archive
if recreater.is_temporary_archive(name):