OSDN Git Service

* dtable.cc (dtable::init_std_file_from_handle): Fix a comment to
authorcorinna <corinna>
Mon, 4 Apr 2011 11:24:19 +0000 (11:24 +0000)
committercorinna <corinna>
Mon, 4 Apr 2011 11:24:19 +0000 (11:24 +0000)
reflect the current state.

winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc

index 47fefc0..c9f1a7c 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-04  Corinna Vinschen  <corinna@vinschen.de>
+
+       * dtable.cc (dtable::init_std_file_from_handle): Fix a comment to
+       reflect the current state.
+
 2011-04-04  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
 
        * Makefile.in (fhandler_proc_CFLAGS): Define USERNAME, HOSTNAME,
index 4529aa9..b3e4548 100644 (file)
@@ -299,8 +299,9 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle)
       if (handle_to_fn (handle, name))
        dev.parse (name);
       else if (strcmp (name, ":sock:") == 0
-              /* On NT4, NtQueryObject returns STATUS_NOT_IMPLEMENTED when
-                 called for a socket handle. */
+              /* NtQueryObject returns an error when called on an LSP socket
+                 handle.  While fdsock now tries to fetch the underlying
+                 base socket, this only works on Vista and later. */
               || (strcmp (name, unknown_file) == 0
                   && !::getsockopt ((SOCKET) handle, SOL_SOCKET, SO_RCVBUF,
                                     (char *) &rcv, &len)))