Article View: comp.os.msdos.programmer
Article #3864Re: Terminating processes that have spawned other processes
From: Eric Hughes
Date: Tue, 11 Dec 1990 17:54
Date: Tue, 11 Dec 1990 17:54
25 lines
1547 bytes
1547 bytes
dsims@uceng.UC.EDU (david l sims) writes about needing to recursively terminate a group of processes. In article <valley.660872074@gsbsun> 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
Technical Details
Message-ID:
<HUGHES.90Dec11095458@locusts.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!agate!agate!hughesReferences:
<6926@uceng.UC.EDU> <valley.660872074@gsbsun>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <HUGHES.90Dec11095458@locusts.Berkeley.EDU> Date: 11 Dec 90 17:54:57 GMT References: <6926@uceng.UC.EDU> <valley.660872074@gsbsun> 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