In have 2 processes, a parent process and a child process. The parent process controls the lifecycle of child process i.e. parent process launches the child process when it needs the child to do some work and also it kills the child when it is done with it. To kill the child process, parent process is using Process.Kill() and process.WaitForExit() APIs.
Questions: -
I am observing that the exit code of the child process is always -1. Who is setting this exit code?
How can I change this exit code?
Have a look at Reflector, this kind of stuff is easy to find with it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With