Path: utzoo!utgpu!watmath!clyde!att!rutgers!ukma!nrl-cmf!ames!amdcad!diablo.amd.com!sidney From: sidney@diablo.amd.com Newsgroups: comp.sys.ibm.pc Subject: How to kill a "process" in MSC 5.1? Message-ID: <23658@amdcad.AMD.COM> Date: 2 Dec 88 05:05:20 GMT Sender: news@amdcad.AMD.COM Reply-To: sidney@diablo.amd.com () Organization: Advanced Micro Devices, Inc. Sunnyvale CA Lines: 20 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.