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!
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!