Skip to content

Commit 64524fe

Browse files
committed
installer: auto-terminate also ssh-pageant.exe instances
The ssh-pageant.exe process serves the same purpose as the ssh-agent.exe processes, except that it uses PuTTY's stored credentials instead of OpenSSH's. As such, it is intended to be auto-started, just like ssh-agent.exe, and should be auto-terminated by the installer, just like ssh-agent.exe, too. Pointed out by Adric Norris. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a14b016 commit 64524fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/modules.inc.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ begin
537537
Processes[Have].ID:=AppList[i].Process.dwProcessId;
538538
Processes[Have].Name:=ArrayToString(AppList[i].strAppName);
539539
Processes[Have].Restartable:=AppList[i].bRestartable;
540-
if (Pos('ssh-add.exe',Processes[Have].Name)>0) or (Pos('ssh-agent.exe',Processes[Have].Name)>0) then
540+
if (Pos('ssh-add.exe',Processes[Have].Name)>0) or (Pos('ssh-agent.exe',Processes[Have].Name)>0) or (Pos('ssh-pageant.exe',Processes[Have].Name)>0) then
541541
Processes[Have].ToTerminate:=True;
542542
end;
543543
Result:=Handle;

0 commit comments

Comments
 (0)