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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return execution to parent without P_NOWAIT?

Status
Not open for further replies.

jalynch

Programmer
Apr 16, 2002
1
0
0
US
Been an anonymous reader to this point!

I have a program that calls spawnlp like this:

if( ( Result = spawnlp( P_WAIT, "BLAH.EXE", "BLAH.EXE", "-D", NULL ) ) == -1 )
{
ReportError();
}

Using P_NOWAIT returns an error (not implemented in the version of DOS I am using). I do not have source for BLAH.EXE else I'd modify it to add a -T (timer) argument.

How to return control to calling program once BLAH.EXE begins execution and has not returned, say after 30 seconds?

Any ideas/help will be appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top