From 280f81d2c3b7c9275839f0662a62896def70a263 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 29 Jun 2012 13:24:39 -0400 Subject: [PATCH] ignore SIGINT in jsvn this way ctrl+c gets propagated to svn but does not kill python so the shell still shows the pager instead of going back to the prompt with a non-functioning terminal in need of "reset" --- jsvn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsvn b/jsvn index 7cc72c6..f4e8b65 100755 --- a/jsvn +++ b/jsvn @@ -14,6 +14,7 @@ import traceback import datetime import types import getopt +import signal STATUS_LINE_REGEX = r'[ACDIMRX?!~ ][CM ][L ][+ ][SX ][KOTB ]..(.+)' @@ -1434,6 +1435,7 @@ def do_cmd(argv, realsvn, config, expand=True): pager_proc.wait() def main(argv): + signal.signal(signal.SIGINT, signal.SIG_IGN) realsvn = find_in_path('svn') config = get_config(realsvn) if config['svn']: