This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

socket dup() patch


The attached patch fixes the vsftpd problem that I mentioned in the
following post:

    http://cygwin.com/ml/cygwin-developers/2003-02/msg00125.html

The patch just initializes fhandler_socket::type so that the following
patch functions properly after a socket has been dup()-ed:

    http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=src&r1=1.79&r2=1.80

The attached test case, is3.cc, can be used to verify proper behavior.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Attachment: fhandler_socket.cc.diff
Description: Text document

Attachment: fhandler_socket.cc.ChangeLog
Description: Text document

Attachment: is3.cc
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]