My desktop application will create a child processduring execution. The child process mayexecute for a long time and occupy a lot of system resource.
The problem is if there's some one kill the parent processby windows task manager, the child process will become orphan and go on to execute, which is not expected.
I wanna find a way to monitor parent process.
So can I create a thread in the child process, whose job is to terminate child process whenever the parent process died?