2009/11/21 Corinna Vinschen <corinna-cyg...@cygwin.com>: > On Nov 21 12:03, Huang Bambo wrote: >> Sorry for my bad expression. I mean the fd duplicated by fork() will >> not be close > > Thanks for the testcase but can you still please send the output > of the test application I sent in > http://cygwin.com/ml/cygwin/2009-11/msg00651.html and you also
finally compiled with: $ gcc-3 -mno-cygwin -g -o dup-sock dup-sock.c -lws2_32 -lntdll and output are: $ ./dup-sock.exe Inherit: 1 dwServiceFlags1: 00020066 dwServiceFlags2: 00000000 dwServiceFlags3: 00000000 dwServiceFlags4: 00000000 dwProviderFlags: 00000008 ProviderId: E70F1AA0-AB8B-11CF-8CA3-00805F48A192 dwCatalogEntryId: 000003E9 ProtocolChain: [len: 1] 0: 0000AB8B iVersion: 2 iAddressFamily: 2 iMaxSockAddr: 16 iMinSockAddr: 16 iSocketType: 1 iProtocol: 6 iProtocolMaxOffset: 0 iNetworkByteOrder: 0 iSecurityScheme: 0 dwMessageSize: 0 dwProviderReserved: 1912 szProtocol: MSAFD Tcpip [TCP/IP] ProviderPath: %SystemRoot%\system32\mswsock.dll > didn't answer my question from > http://cygwin.com/ml/cygwin/2009-11/msg00655.html I don't have any antivirus software or firewall installed in my computer. Please send the test code to me. > > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Project Co-Leader cygwin AT cygwin DOT com > Red Hat > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple