Skip to content
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

If ssh-agent.exe is running, it prevents upgrades of Git for Windows #920

Closed
dscho opened this issue Oct 20, 2016 · 1 comment
Closed

If ssh-agent.exe is running, it prevents upgrades of Git for Windows #920

dscho opened this issue Oct 20, 2016 · 1 comment
Assignees
Milestone

Comments

@dscho
Copy link
Member

dscho commented Oct 20, 2016

As we know that ssh-agent.exe is a daemon, we should simply kill it and move on.

The main problem I had with this is that it appears as if there may be an ssh-add.exe running at the same time, and a second ssh-agent.exe process, both of which are not shown by MSYS2's own ps -W. But the Task Manager sees them and the user can kill them interactively.

Hopefully we can teach the installer to kill silently any of Git's own ssh-agent.exe and/or ssh-add.exe. The chances are good: We already show such processes successfully in the wizard page that prevents the installer from running, after all.

@dscho dscho added this to the v2.11.0 milestone Oct 20, 2016
@dscho dscho self-assigned this Oct 20, 2016
@landstander668
Copy link

For what it's worth, ssh-pageant.exe should probably be handled in the same way. It has essentially the same impact and is reported the same way when upgrading, although I wouldn't expect to find the ssh-add.exe and/or second agent processes in that case.

@dscho dscho modified the milestones: v2.11.0, v2.10.2 Oct 29, 2016
dscho added a commit to dscho/build-extra that referenced this issue Nov 1, 2016
When running Git for Windows' installer, it is pretty obvious that any
running SSH agent that needs to be potentially upgraded needs to be
stopped. So let's do just that.

This fixes git-for-windows/git#920

Signed-off-by: Johannes Schindelin <[email protected]>
dscho added a commit to git-for-windows/build-extra that referenced this issue Nov 1, 2016
when upgrading Git for Windows, SSH agent processes [are now
auto-terminated](git-for-windows/git#920).

Signed-off-by: Johannes Schindelin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants