sidney@diablo.amd.com (12/02/88)
I am writing a program in MSC 5.1 that I need to: -- spawn another program to run under its control -- set the time limit the spawned program is allowed to run -- "kill" the spawn program when timeout I plan (and partly managed) to do the followings: -- the main controlling program get the current time and add the amount of time the spawned program is supposed to be timed out -- a function to _dos_setvect the clock interrupt to my interrupt handler -- the handler compare the current time with a preset timeout time and "kill" the spawned program -- the spawned program will return either after finish executing or being killed I got the interrupt handler working correctly to get to the "kill" part. But I don't know how to KILL the spawned program. I believe this is a VERY HARD problem so please e-mail to me if any of you PC-DOS wizard has any idea. I believe I have to alter the stack someway if following my approach. Any new idea is welcomed.