how to do waitpid() using a multi-threaded server?
i'm running a multi-threaded server, which forks it's children
but my problem is, if the child exits it's a zombie process
in the server i'm using accept to wait for connections
so i don't realy have the time to do waitpid()
how can i terminate my childs without having a problem of missing a connection from a client?
is there a way to do this event-based
if a child exits, i do waitpid
Last edited by Thinking; 04-12-2005 at 11:05 AM.