Xref: utzoo comp.unix.questions:11654 comp.unix.wizards:14648 comp.unix.xenix:4925 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!pyramid!prls!philabs!ttidca!quad1!avatar!kory From: kory@avatar.UUCP (Kory Hamzeh) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.xenix Subject: Getting rid of a process Keywords: defunct process Message-ID: <102@avatar.UUCP> Date: 11 Feb 89 02:18:12 GMT Distribution: usa Organization: Kory Hamzeh, Canoga Park, Ca, USA Lines: 25 I have written an application which forks and execs off many subtasks. The main process (the parent which does all of the forks) can not do a wait() because I can't get blocked for anything. Well, this results in a lot of "" processes in the process table when the child exits. Is there any way to get rid of these processes? If not, will they take up any core space? I assume they will take up a slot in the process table. A short term solution would be to keep a list of all of the pids which where created and occasionaly do a kill(pid, 0) to see if the process is still alive. If not, then do a wait(). The OS that I am using is XENIX/386 System V Version 2.3.1. Any help would be greatly appreciated. Thank you, kory -- ------------------------------------------------------------------------------- Kory Hamzeh UUCP: ..!uunet!psivax!quad1!avatar!kory INTERNET: avatar!kory@quad.com