in reply to A suicidal parent OR death of a forking server

MonkeyMonk:

Regarding (B): Since you make the connection using the accept method on your socket, all you need to do is keep track of the number of connections you have. Once you have five connections, simply stop accepting connections until one of the children disconnect.

...roboticus

  • Comment on Re: A suicidal parent OR death of a forking server