Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!kuhub.cc.ukans.edu!jian From: jian@kuhub.cc.ukans.edu Newsgroups: comp.unix.questions Subject: How to clean out Zombies? Message-ID: <24986.26a58a7a@kuhub.cc.ukans.edu> Date: 19 Jul 90 15:24:57 GMT Organization: University of Kansas Academic Computing Services Lines: 18 Help Wanted: I am writting a program that works like a daemon process. The master will run forever on UNIX and listen a port for request calls. In order to make the master process be able to handle multiple calls at the same time, I design the program to spawn out child process to perform work whenever a request call comes. The child process will terminate itself when a clear call signal is received. Here is the problem. When I use "ps ux" shell command to check the status of processes on the system, I found lots of Zombie processes. If I terminate the master process, all of zombies are gone. However, I want the master process run forever. What should I do inside the program in order to make child processes really terminate themself without leave any zombies on the system. I would appreciate any helps. Thanks in advance. Jian Q. Li jian@kuhub.cc.ukans.edu