Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process Control?????????

Status
Not open for further replies.

metamorphy

Programmer
Dec 16, 2001
34
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top