]> granicus.if.org Git - python/commitdiff
Fix for issue 4332 in trunk.
authorJosiah Carlson <josiah.carlson@gmail.com>
Wed, 19 Nov 2008 18:26:12 +0000 (18:26 +0000)
committerJosiah Carlson <josiah.carlson@gmail.com>
Wed, 19 Nov 2008 18:26:12 +0000 (18:26 +0000)
Lib/asyncore.py

index 9cd49616136021685d2d6d33321168b7f2b36d17..75fd5aedd2cbdd9a87489ed8b0b9e0d1a6f9dfbb 100644 (file)
@@ -615,6 +615,6 @@ if os.name == 'posix':
             fcntl.fcntl(fd, fcntl.F_SETFL, flags)
 
         def set_file(self, fd):
-            self._fileno = fd
             self.socket = file_wrapper(fd)
+            self._fileno = self.socket.fileno()
             self.add_channel()