##// END OF EJS Templates
pager: catch ctrl-c on exit (issue3834)
Matt Mackall -
r18717:fcc4b558 default
parent child Browse files
Show More
@@ -94,6 +94,8 b' def _pagersubprocess(ui, p):'
94
94
95 @atexit.register
95 @atexit.register
96 def killpager():
96 def killpager():
97 if util.safehasattr(signal, "SIGINT"):
98 signal.signal(signal.SIGINT, signal.SIG_IGN)
97 pager.stdin.close()
99 pager.stdin.close()
98 os.dup2(stdout, sys.stdout.fileno())
100 os.dup2(stdout, sys.stdout.fileno())
99 os.dup2(stderr, sys.stderr.fileno())
101 os.dup2(stderr, sys.stderr.fileno())
General Comments 0
You need to be logged in to leave comments. Login now