RE: accept

David Schwartz
2001-02-05T00:21:28Z

Wrong. fd 0 can be a valid socket. Read the man page to 'accept' again.
Remember again that zero is a non-negative integer.

> I posted that on this mailing list coz I thought that this might
> be a scaling
> problem since it happens when theres already several clients
> connected to the
> server

If your code called 'perror' in response to getting a zero from 'accept',
your code is broken.

DS