[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with the undead (zombies)



On Fri, 5 Jun 1998, Stephen Carpenter wrote:

> This turned out to be almost trivial...simply a few mods, instead of servicing
> requests after connect, it fork()s and lets the child service that connection
> while the parent loops and waits fo rthe next connect. [I think I changed 
> 10 lines of code total]
> 
> This SEEMS to work fine (I havn't really given it a good test -YET)
> except when I connect and then disconnect...the child exists 
> (via _exit(0)) after the client disconnects. The problem is that the
> child then become a zombie.
>
> [ how do I get rid of zombies? ]

See wait(2).

Brandon

-----
Brandon Mitchell <bhmit1@mail.wm.edu>   "We all know linux is great... it
PGP: finger -l bhmit1@cs.wm.edu          does infinite loops in 5 seconds"
Phone: (757) 596-5550                      --Linus Torvalds
Debian Testing Group status: http://bhmit1.home.ml.org/deb/


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: