nmbd.c open_sockets() have wonder initialization.

David Collier-Brown David.Collier-Brown at canada.sun.com
Thu Nov 9 15:04:10 GMT 2000

Kenichi Okuyama wrote:
> 2) Now, file descriptor with invalid value is -1.
>   So, we know that any number < 0 is invalid file descriptor.
>   BUT! who knows. Someone might wish to add new value less than
>   0 for some other meaning.

	In fact, that's happened in some unix-like software:
	my leaky memory also says that winsock fd's are negative.

David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com

More information about the samba-technical mailing list