Strange behaviour of Process.Kill when NOT using ShellExecute on C# .Net Core 7.0

59 Views Asked by At

Consider a Parent process called "A".

"A" will run a child process "B" with ShellExecute=false.

"A" will run a child process "C" with ShellExecute=false.

Now the issue is here: If you Kill or End Task the process "B" , the process "C" will be killed too!

When i set ShellExecute=true the problem is solved!

Is it a bug or something?

0

There are 0 best solutions below