Ok, this seems elementary to me, but I can't for the life of me figure it out.
I need to launch an app from my c++ app. But I need to know the PID. Am I able to find this out from system() or popen()?
If I remember right, when you fork a process, the pid return value for the parent process is actual value of the child pid process, is that a way I could tackle this?
I need to launch an app from my c++ app. But I need to know the PID. Am I able to find this out from system() or popen()?
If I remember right, when you fork a process, the pid return value for the parent process is actual value of the child pid process, is that a way I could tackle this?