]> arthur.barton.de Git - bup.git/commitdiff
Add handle_ctrl_c to bup itself
authorRob Browning <rlb@defaultvalue.org>
Wed, 2 Dec 2020 07:48:42 +0000 (01:48 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 6 Mar 2021 18:29:38 +0000 (12:29 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/bup

index ebe52a034bc015fb73c601926bb785e44aa2cbf1..c084e312a24ae33113e98bf6279c011a962fc0c4 100755 (executable)
@@ -44,10 +44,19 @@ from bup.compat import (
     fsdecode,
     wrap_main
 )
-from bup.helpers import columnate, debug1, log, merge_dict, tty_width
+from bup.compat import add_ex_tb, add_ex_ctx, argv_bytes, wrap_main
+from bup.helpers import (
+    columnate,
+    debug1,
+    handle_ctrl_c,
+    log,
+    merge_dict,
+    tty_width
+)
 from bup.io import byte_stream, path_msg
 from bup.options import _tty_width
 
+handle_ctrl_c()
 
 cmdpath = path.cmddir()