-
Notifications
You must be signed in to change notification settings - Fork 618
Fixes #1083 in main git repository. #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* 'master' of ssh://github.com/git-for-windows/build-extra: (172 commits) please.sh test_remote_branch: handle submodule gracefully Mention Bug Fix in release notes ReleaseNotes: keep only latest BusyBox update note Mention New Feature in release notes Mention Bug Fix in release notes Mention New Feature in release notes installer: make sure that the hardlinked .dll files are up-to-date Mention Bug Fix in release notes Mention New Feature in release notes git-extra: new version git-extra: adjust checksums git-extra (git-update): warn if more than one Bash is killed git-extra (git-update): really return early git-extra (git-update): clarify why `ps` is safe please.sh rebase: allow --jump again ;-) Mention New Feature in release notes installer: fix 'Unknown identified' Mention Bug Fix in release notes installer: override previous default of symlink option installer: refactor IsDowngrade() function ...
If it's empty it means Vim was launched from a git process, therefor we need to disable `<C-z>` which might cause lose of our work during editing the files (could be a `difftool` or `mergetool`).
Thanks for your contribution. I had a look and I think it would do what you want it to do: disable Ctrl+Z handling when However, I think that a more thorough approach might be to patch the MSYS2 runtime to refuse The rationale: MSYS2 emulates the POSIX behavior as long as it is in control, and with pure-Win32 processes, it is not in control, not really. For extra bonus points, the MSYS2 runtime would then also log a warning "not signaling pid : Win32 process" or something similar. The advantage of that approach is that it would not prevent MSYS2 child processes of It is pretty easy to find the code location which would need to be patched for this, as Git for Windows' MSYS2 runtime fork already has some special code in the MSYS2 runtime to emulate Ths would need to be tested as described in https://github.com/git-for-windows/git/wiki/Building-msys2-runtime#rebuild-the-msys2-runtime. |
Well it's exactly the kind of PR I would have loved to contribute to |
When calling Win32 processes from MSYS2, it does not really make sense to kill them when a user tries to suspend them. It is much better to warn the user that Win32 processes simply cannot be suspended. This closes git-for-windows/git#1083 and replaces git-for-windows/build-extra#154 Signed-off-by: Johannes Schindelin <[email protected]>
@doronbehar thank you again for your contribution, even if the end result looks quite a bit different from your initial Pull Request. I hope you are as happy with the outcome as I am? |
It's so nice of you to ask :-]
That's the point of free software IMO :) |
Issue
Notice: I haven't tested it because I don't have a windows machine to do so.
Please tell me if it works.