Commit d51f2b8
committed
Fix ppaged crash on SIGKILL of pager
Ensure terminal settings and foreground process group are restored after
the pager process exits. This prevents 'termios.error' crashes in
prompt_toolkit when the pager is killed abnormally (e.g. SIGKILL),
which can leave the terminal in an inconsistent state.1 parent bb0d112 commit d51f2b8
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1614 | 1637 | | |
1615 | 1638 | | |
1616 | 1639 | | |
| |||
0 commit comments