Show More
@@ -1467,7 +1467,7 b' class ui:' | |||||
1467 | self.flush() |
|
1467 | self.flush() | |
1468 |
|
1468 | |||
1469 | wasformatted = self.formatted() |
|
1469 | wasformatted = self.formatted() | |
1470 |
if util.safehasattr(signal, |
|
1470 | if util.safehasattr(signal, "SIGPIPE"): | |
1471 | signal.signal(signal.SIGPIPE, _catchterm) |
|
1471 | signal.signal(signal.SIGPIPE, _catchterm) | |
1472 | if self._runpager(pagercmd, pagerenv): |
|
1472 | if self._runpager(pagercmd, pagerenv): | |
1473 | self.pageractive = True |
|
1473 | self.pageractive = True | |
@@ -1547,7 +1547,7 b' class ui:' | |||||
1547 |
|
1547 | |||
1548 | @self.atexit |
|
1548 | @self.atexit | |
1549 | def killpager(): |
|
1549 | def killpager(): | |
1550 |
if util.safehasattr(signal, |
|
1550 | if util.safehasattr(signal, "SIGINT"): | |
1551 | signal.signal(signal.SIGINT, signal.SIG_IGN) |
|
1551 | signal.signal(signal.SIGINT, signal.SIG_IGN) | |
1552 | # restore original fds, closing pager.stdin copies in the process |
|
1552 | # restore original fds, closing pager.stdin copies in the process | |
1553 | os.dup2(stdoutfd, procutil.stdout.fileno()) |
|
1553 | os.dup2(stdoutfd, procutil.stdout.fileno()) |
General Comments 0
You need to be logged in to leave comments.
Login now