-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
gsudo hangs when run from Windows Terminal started with wt alias #43
Comments
AppVeyor builds dont have the right version numbers, my bad. :(
Could you please describe this "wt alias". What is it? How do you installed it? Is Thanks for your capture of the thread call stack. Is really helpfull. Looks like it's on an infinite loop on this function. I will check further. |
…ormationProcess NtDll.Dll to address #43
I've replaced GetParentProcessId implementation to one based on the NtQueryInformationProcess Api. It does not loop thru the process list, so it shouldnt hang. https://ci.appveyor.com/project/gerardog/gsudo/builds/33450338/artifacts Thank you |
Great! This issue should auto-close when this is merged to master. |
Out of curiosity did it really not behave the same on your system? |
It did not. I tried running WT from the command line with MsStore aliases ( Anyway... I didn't liked much to iterate O(n) all processes to get one PPID. The new implementation just looks better to me. (IMHO, even if it is flagged as deprecated, NtDll.dll is not going away for another decade, because there is no better alternative). |
Tried following the steps you described and saw the same behavior. It seems it only happens with opening the start menu, typing |
The fix was released in v0.7.1. |
I'm trying out
gsudo
and fromcmd
,pwsh
or Windows Terminal shortcut it works as expected.However when starting Windows terminal by the
wt
aliasgsudo
will "hang" and never shows the elevation prompt.Further details:
The text was updated successfully, but these errors were encountered: