bottom
bottom copied to clipboard
[Windows] Bottom can not kill service/tasksch started processes
Checklist
- [X] I've looked through troubleshooting, known problems, and existing open issues for similar issues.
What operating system and version are you using?
Windows 10 22H2 19045.3086
What architecture are you using?
x86_64 / AMD64
What terminal(s) are you running bottom on?
Running from NuShell in Windows Terminal - With admin privilages
What version of bottom are you running?
0.9.3
How did you install bottom?
winget
Describe the issue
When running bottom with admin permissions, bottom can not kill processes started by a service or scheduled task.
These tasks can be killed forcefully under admin permissions using taskkill /F /PID
Many software make them selfs PUPs by adding perisistance into the system, such as scheduled tasks or installing a service. Which the user wants to kill.
What is the expected behaviour?
Attempt/provide other methods to kill a process.
Such as, if the terminateprocess fails, attempt to use taskkill /F /PID {Process_ID}
What is the actual behaviour?
The kill process fails.
How can we reproduce this?
Run a process as a service. Example used in GIF is anydesk, likes to install its self as a persistant service once used.
Attempt to kill that process running as a service child process.
Observe permission failure.
Additional information
Noted, will try to reproduce and fix. The way I do process killing in Windows is a bit jank so I wouldn't be surprised if it's not correct.