Re: Sockets and forking

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/20/97


On Sat, 20 Dec 1997, Rasmus Ronlev wrote:

>I'm having some trouble with the children of a process to 'DIE'. They wind
>up as zombie processes, and since the 'parrent' process is used for
>looking up DNS entries for the people logging into my mud, this gets
>pretty bad in the long run, with loads of these zombies hanging arround.
[...]
>The utility does the work it's supposed to like a charm on both Linux and
>BSD, it's just, that the zombie processes it creates is kind of.. well..
>Unwanted in most system administrators point of view :)

You have to reap your dead children. (Kind of violent, isn't it?)

Try these functions:
       wait3, wait4 - wait for process termination, BSD style
       wait, waitpid - wait for process termination

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST