Commit 3959306
committed
mingw: really handle SIGINT
Previously, we did not install any handler for Ctrl+C, but now we really
want to because the MSYS2 runtime learned the trick to call the
ConsoleCtrlHandler when Ctrl+C was pressed.
With this, hitting Ctrl+C while `git log` is running will only terminate
the Git process, but not the pager. This finally matches the behavior on
Linux and on macOS.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent c603bf2 commit 3959306
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
| 4099 | + | |
4099 | 4100 | | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
4100 | 4107 | | |
4101 | 4108 | | |
4102 | 4109 | | |
| |||
4133 | 4140 | | |
4134 | 4141 | | |
4135 | 4142 | | |
| 4143 | + | |
| 4144 | + | |
4136 | 4145 | | |
4137 | 4146 | | |
4138 | 4147 | | |
| |||
0 commit comments