diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-31 08:53:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-31 08:53:57 +0000 |
commit | adef8606bdb87500a0aa5595de4d09c21a85b8fa (patch) | |
tree | 82acea7f7d6af35f67261366d1571fd3ba2986e9 /winsup/cygwin/fhandler_socket.cc | |
parent | 3bd3027c34b5c5768912630659091addffd5b956 (diff) | |
download | newlib-adef8606bdb87500a0aa5595de4d09c21a85b8fa.zip newlib-adef8606bdb87500a0aa5595de4d09c21a85b8fa.tar.gz newlib-adef8606bdb87500a0aa5595de4d09c21a85b8fa.tar.bz2 |
* fhandler_socket.cc (address_in_use): Improve comment readability.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 86dc920..f0c9d6d 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -873,9 +873,10 @@ fhandler_socket::link (const char *newpath) } #if 0 -/* This doesn't work correctly. It has been called in bind to check if a - loca address is still in use, but it disables bind in the SO_REUSEADDR - case even if only an accepted socket is still using the local address. +/* This function doesn't work correctly. It has been called in bind to check + if a local address is still in use, but it disables to bind in the + SO_REUSEADDR case even if only an accepted socket is still using the + local address, and even if said accepted socket is already in CLOSE_WAIT. I keep this function in the code for later reference only. */ static inline bool address_in_use (const struct sockaddr *addr) |