Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!ames!ncar!midway!valley From: valley@uchicago (Doug Dougherty) Newsgroups: comp.os.msdos.programmer Subject: Re: Terminating processes that have spawned other processes Keywords: process termination Message-ID: Date: 10 Dec 90 23:34:34 GMT References: <6926@uceng.UC.EDU> Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 24 dsims@uceng.UC.EDU (david l sims) writes: >Does anyone know of any techniques to use in the following scenario: >Say I'm running a BBS that uses a program like DOORWAY or GATEWAY to >run another program outside the BBS (a door). Now say that the door >runs another program on its own, and then *that* program runs another >program on its own, and so on until we have 6 or 7 processes out there. >Now, say the caller idles too long and GATEWAY wants to hangup on him >and terminate all processes and return to the BBS. I noticed that DOS >function 4Bh or something like that (terminate process) says that it >terminates the *current* process. Well, if we've got 6 or 7 processes >going, that won't get kill all the extra ones and get us back to the BBS. >I hope that anyone who generally knows what I'm talking about has the idea. >Would you share any techniques you might use or know of to solve this >potential problem? >Thanks much. There are no signals in DOS... The standard solution is to reboot the machine. Use WATCHDOG.COM.