I'm writing a little windows program with a GUI to help configure the settings and start the miner for the user. However, I noticed when bminer starts, it immediately spawns a second process. This is problematic because I only know the PID of the the first process, while the actual miner is running in the second process.
I can't shut down the actual miner by PID, and have to do it by process name. Normally this would be OK, except where the user wanted to run multiple copies of bminer (one for cards 0, 1, 2 and a second copy for 3, 4, 5 for example). I would end up shutting down both instances.
So my question is, why the double process? Any suggestions on how I know which 2 processes go together?
Thanks!