Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!vsi1!daver!apt!brian From: brian@apt.UUCP (Brian Litzinger) Newsgroups: comp.unix.questions Subject: Need help spawning a child Message-ID: <1661@apt.UUCP> Date: 20 Jun 89 21:33:57 GMT Distribution: usa Organization: APT Technology, Inc., San Jose, CA Lines: 28 I have a daemon process that spawns child processes to do some sub-tasks. The sub-tasks are asynchronise and the parent doesn't care how successful the children are. Therefore the parent process never waits for the child. This results in my process table filling up with processes over time. I simply want the child processes to exit and go away forever. I do not want the parent to have to wait on it. I use fork(2) to create the process, and have used both exec(2), and system(3) to run the actual job. I've tried setpgrp(2) in the child process but it did not make any difference. From ps(1): "A process that has exited and has a parent, but has not yet been waited for by the parent, is marked ." Elsewhere I found information that a defunct process holds no system resources except to a slot in the process table. I have a V.3.2 system, so BSDism's won't help me. Any help would be appreciated. <> Brian Litzinger @ APT Technology Inc., San Jose, CA <> UUCP: {apple,sun,pyramid}!daver!apt!brian brian@apt.UUCP <> VOICE: 408 370 9077 FAX: 408 370 9291