]> git.michaelhowe.org Git - packages/o/openafs.git/commit
windows-no-fds-20051217
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 17 Dec 2005 17:26:57 +0000 (17:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 17 Dec 2005 17:26:57 +0000 (17:26 +0000)
commit8c3cf4b89445d969c9f85e929d5e030f53773f81
tree6f49b3eb8918f371f703317273e43f76687ac672
parente5c8042e72a077bfcb05232c918995e9e965b7c2
windows-no-fds-20051217

when collecting rx statistics in response to an RPC query, the rx library
attempts to enumerate the number file descriptors in use.  This is fine
except that file descriptors are a C Run Time Library concept on Windows
and are not related to networking.  In Visual Studio 8, the run time library
will assert() if an invalid file descriptor is passed to fstat() which is
the test used to determine if a file descriptor is valid.

This patch simply returns 0 for the number of file descriptors in use
because that is what would have been returned anyway with the existing
code.  What we probably want to return is the number of open socket
handles.
src/rx/rx_packet.c