Show More
@@ -474,11 +474,13 b' def chunkselector(ui, headerlist, operat' | |||||
474 | ui.write(_('starting interactive selection\n')) |
|
474 | ui.write(_('starting interactive selection\n')) | |
475 | chunkselector = curseschunkselector(headerlist, ui, operation) |
|
475 | chunkselector = curseschunkselector(headerlist, ui, operation) | |
476 | f = signal.getsignal(signal.SIGTSTP) |
|
476 | f = signal.getsignal(signal.SIGTSTP) | |
477 | curses.wrapper(chunkselector.main) |
|
477 | try: | |
478 | if chunkselector.initerr is not None: |
|
478 | curses.wrapper(chunkselector.main) | |
479 |
|
|
479 | if chunkselector.initerr is not None: | |
480 | # ncurses does not restore signal handler for SIGTSTP |
|
480 | raise error.Abort(chunkselector.initerr) | |
481 | signal.signal(signal.SIGTSTP, f) |
|
481 | # ncurses does not restore signal handler for SIGTSTP | |
|
482 | finally: | |||
|
483 | signal.signal(signal.SIGTSTP, f) | |||
482 | return chunkselector.opts |
|
484 | return chunkselector.opts | |
483 |
|
485 | |||
484 | def testdecorator(testfn, f): |
|
486 | def testdecorator(testfn, f): |
General Comments 0
You need to be logged in to leave comments.
Login now