Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!agate!agate!hughes From: hughes@locusts.Berkeley.EDU (Eric Hughes) Newsgroups: comp.os.msdos.programmer Subject: Re: Terminating processes that have spawned other processes Message-ID: Date: 11 Dec 90 17:54:57 GMT References: <6926@uceng.UC.EDU> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: ucb Lines: 25 In-Reply-To: valley@uchicago's message of 10 Dec 90 23:34:34 GMT dsims@uceng.UC.EDU (david l sims) writes about needing to recursively terminate a group of processes. In article valley@uchicago (Doug Dougherty) replies: >There are no signals in DOS... >The standard solution is to reboot the machine. Use WATCHDOG.COM. But if you had to, you could simulate a kill signal with a special loader program which could terminate its subprocesses. Let us call this hypothetical program 'killable.exe'. It would be run like 'errout' or similar program and exec the command line which followed it after setting up a vector for interrupt 0x22, the terminate handler address. At termination of 'killable' the termination handler gets control. 'killable' then goes about killing all its subprocess. This kind of program could exist, but I don't know if it does; I have never written one. I'll bet the watchdog program is more reliable in most circumstances, though. Eric Hughes hughes@ocf.berkeley.edu