metamorphy
Programmer
Can anybody give me some advice on the following:
Why is it that if I use system() or spawnl() to
start another program from my program, when the new program exits, the origal program continues running under the name of the new program. How can I get the two programs to run independently from the dos command line.
If I use the _P_WAIT mode with spawnl, shouldnt the calling process be the only thing running when the second program exits?? I am REALLY confused by this whole process/thread control thing. Can anyone out there explain it to me in more basic terms.
Why is it that if I use system() or spawnl() to
start another program from my program, when the new program exits, the origal program continues running under the name of the new program. How can I get the two programs to run independently from the dos command line.
If I use the _P_WAIT mode with spawnl, shouldnt the calling process be the only thing running when the second program exits?? I am REALLY confused by this whole process/thread control thing. Can anyone out there explain it to me in more basic terms.