fhandler_socket::dup

Corinna Vinschen cygwin-patches@cygwin.com
Tue Mar 11 10:24:00 GMT 2003


On Mon, Mar 10, 2003 at 08:09:02PM -0500, Pierre A. Humblet wrote:
> Corinna,
> 
> Here is a patch to have fhandler_socket::dup return success
> or failure (related to the problem seen by Jason Tishler).

Thanks.  We still don't know *why* that happens, though.  That bugs me.

Anyway, I've made a change to fhandler_socket::dup() so that dup always
uses DuplicateHandle instead of the WinSock2 duplication methods.
Now it works. :-P

I'm seriously concidering to remove all the fixup_before/fixup_after
from fhandler_socket::dup() and just call fhandler_base::dup() on
NT systems.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list