I have big problem. In my code,
private void TestFunction()
{
Process.Start("-other.program.exe");
}
and I want to the process kill when my main program is killed.
I can't use Closed
event handler cause it'll not fire if my program is killed from task manager process list.
I found some keyword such as fork and exec, but I have not found how to do.
I want to kill the process which start by my program when my program is killed not right way.