I have an application that spawns multiple child processes. Before launching a child, I create stdOut and stdErr handles to a log file (for example, if I am about to launch procA, i create handles to logA.log). I set these handles on the child processes.
By looking with ProcExplorer, I can see that each child process has handles to each log file (so procA has handles to logA, logB, etc.). This is creates later problems.
I want to be able to see when procA creates the handle to logB. Any ideeas?
One possible solution can be that handle to file are shared between any child processes beacause they are created by the parent process.
That's the only solution I can see because I don't see how you can have multpile handle (one to each log file) in each child processes if you design so that you only have one var to handle it.
Why not creating your handles in the child processes ? I know it does respond pricesly to the question but obviously if procA only need the handles to logA it will better to create the handle to logA in the child process procA.