Closed MokoSan closed 2 years ago
seems like it would be helpful to the user to display the commandline args of those processes for them to decide which pid they want. what do you think?
Definitely think it's a great idea! Thanks! Command line args are only available to other processes if we are in sudo/admin mode. The way to discern the sudo / admin mode for Linux and MacOs / Windows are different additionally, the methodology to get to command line args amongst the different OSes is different; the last commit before this comment takes care of this.
A different prompt is presented to the user if they are in sudo/admin mode than if they are not.
sorry @MokoSan, I didn't get to your PRs earlier. I'm also starting my vacation so my response will be slow. I've talked to @mangod9 to see if he could review some of the PRs here while I'm OOF.
right, you do need admin privilege to see other processes's cmdline args. I forgot about that. on linux EventPipe does not require you to have admin privilege so users could be both but on windows, since we are using ETW, it means you'd already need to have admin privilege. in your 1st pic (non admin on windows) are you able to actually monitor?
Thanks for taking a look!
in your 1st pic (non admin on windows) are you able to actually monitor?
Yes - I am able to monitor without admin privileges (always have been able to minus the call stack work).
Enjoy your vacation!
@Maoni0, this PR is also ready to be merged with the latest rebased changes + additions to the different IConsoleOut
impls. Additionally, I removed the requirement of being a super user for Linux / MacOS to read the commandline args as it's a simple file read.
awesome! thanks @MokoSan
For the case of multiple processes, rather than exiting the process, prompt the user to choose one based on the PID. This is to fix #32.
The behavior is now like the following: