Replies: 3 comments 1 reply
-
Interesting question. Two options here,
In a nutshell
|
Beta Was this translation helpful? Give feedback.
-
I created an issue to track this change. #193 |
Beta Was this translation helpful? Give feedback.
-
@Glavo If you need to Kill/Terminate arbitrary child processes, IMO you always should kill the child process tree. (That is, do it like Process Explorer and enumerate all child processes.) Otherwise you're always in the situation that if anything in the child spawns another process (powershell Start-Job anyone) than you won't catch it. Btw. @gerardog ....
Killing an elevated process in the same logon session does not require elevation.
|
Beta Was this translation helpful? Give feedback.
-
@gerardog I am starting another subprocess in my program. To get the subprocess to run with admin privileges, I started it with gsudo.
But I now have a problem: I need to terminate this child process in my program, but when I use gsudo,
TerminateProcess
only terminates gsudo itself, and the process started by gsudo is still running.So, how should I terminate this process?
Beta Was this translation helpful? Give feedback.
All reactions