You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a chocolatey package for wsl-ssh-agent (package source). I want to gracefully stop wsl-ssh-agent-gui process before updating wsl-ssh-agent package.
When I forcibly stop wsl-ssh-agent-gui by powershell Stop-Process cmdlet, socket file and lock file generated by wsl-ssh-agent-gui (like ssh-126447479.sock, wsl-ssh-agent-gui.lock) remain in %TEMP% folder.
Is there a good method to gracefully stop wsl-ssh-agent-gui process from command line (powershell or cmd)?
The text was updated successfully, but these errors were encountered:
Presently I do not think so - but I do not think you actually need it. "systray_temp_icon" file in tmp directory is not being cleaned anyways and .lock file will be safely overwritten next time program starts. So the only actual garbage you'd see could be .sock file. If this sock file has "well known" name - it will be overwritten next time program starts and if "default" name is used - it would leave a single 0 length file in tmp directory - no harm there. I would take a look if it is actually possible to intercept termination signal in gui app those days and do some additional cleanup, but I do not think this is critical for what you are doing.
I'm creating a chocolatey package for wsl-ssh-agent (package source). I want to gracefully stop
wsl-ssh-agent-gui
process before updating wsl-ssh-agent package.When I forcibly stop
wsl-ssh-agent-gui
by powershellStop-Process
cmdlet, socket file and lock file generated bywsl-ssh-agent-gui
(likessh-126447479.sock
,wsl-ssh-agent-gui.lock
) remain in%TEMP%
folder.Is there a good method to gracefully stop
wsl-ssh-agent-gui
process from command line (powershell
orcmd
)?The text was updated successfully, but these errors were encountered: