mirror of
https://github.com/git/git.git
synced 2026-01-24 09:30:22 +00:00
This reverts the change where we tried to make sure that child processes are killed upon exit of the git.exe process. This change was misguided: it wanted to pretend that each process was responsible to signal its child processes upon receiving a signal. But it is the responsibility of the syscall `signal()` (or in the case of Windows, either MSYS2's signal() or whoever wanted to terminate the git.exe process) to take care of the child processes. We just changed the MSYS2 runtime accordingly, in the hope that this addresses the Ctrl+C problems (stale .git/index.lock files, runaway git-remote-https when interrupting a clone, killed pager when hitting Ctrl+C in `git log`, interrupting node.js processes that listen to SIGINT, C# programs installing a ConsoleCtrlHandler, etc) once and for all. This commit is part of the fix, as pressing Ctrl+C while `git log` is running would kill the pager otherwise (it is a child process of git.exe after all). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>