PDA

Click to See Complete Forum and Search --> : Finding process relationshipd


cherryp
May 22nd, 2001, 11:18 AM
Hi,

have an app that monitors other apps, starts and stops them at specific time and re-starts them if they should fail.

The problem I have is that if an process fails I need to work out what processes it has spawned to unload those too ..... any idea how I can see a sort of process parent - child relationship.

Any suggestions welcome

Thanks
Paul

csammis
May 22nd, 2001, 05:09 PM
If I get your meaning, you're trying to do something like Windows NT services?

I don't know how you'd find child processes, but you *might* have a problem stopping them if you do...as far as I know, you can only control processes that your program starts. If anyone knows differently, please help out!

cherryp
May 23rd, 2001, 04:44 PM
No I have the unloading processes bit working fine, as long as I have the process id I can stop it, problem is some of the process spawned off by the process I kill need to be wiped out too and its getting these process IDs that is causing me the problem