Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!uceng!dsims From: dsims@uceng.UC.EDU (david l sims) Newsgroups: comp.os.msdos.programmer Subject: Terminating processes that have spawned other processes Keywords: process termination Message-ID: <6926@uceng.UC.EDU> Date: 10 Dec 90 18:40:03 GMT Expires: 17 Dec 90 05:00:00 GMT Followup-To: comp.os.msdos.programmer Organization: College of Engg., Univ. of Cincinnati Lines: 18 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.