How to get the PID of a process launched from another process with the execlp c function?
I am working with a Debian (Linux like) OS writing code in c.
I am a running process (let’s call it “A”) which needs to launch an executable program AND to get its PID when the new process “B” starts running.
Both processes “A” and “B” have to remain running (i.e. neither one must terminate).