Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-ID: <3E68C1D5.59592245@ieee.org> Date: Fri, 07 Mar 2003 10:59:17 -0500 From: "Pierre A. Humblet" X-Accept-Language: en,pdf MIME-Version: 1.0 To: cygwin-developers AT cygwin DOT com Subject: Re: Winsock closesocket() problem References: <20030306144658 DOT GB2008 AT tishler DOT net> <3E6762CA DOT 8EF5B6A8 AT ieee DOT org> <20030306154047 DOT GC2008 AT tishler DOT net> <20030307131445 DOT GC20194 AT cygbert DOT vinschen DOT de> <3E68ADBF DOT 77EF953F AT ieee DOT org> <20030307154450 DOT GF20194 AT cygbert DOT vinschen DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Corinna Vinschen wrote: > But as you guessed, calling the test application from a plain Win app *does* > help. I started a ssh session under system account, switched to cmd.exe > and called the test app and the error disappears. > > Baffled, The last logs from Jason should help. > > My hypothesis about that is that strace starts everyting fresh from > > Windows. Otherwise we start from (ba)sh (or cygrunsrv), which may have > > setup/opened "things" for us. > > Might be but what "things"? The both sockets are also "fresh" and not > shared with any other application. Not sure. I was thinking a dll perhaps? Something that controls access to itself. Looking at log3, where sc11.exe starts, I am really surprised by the number of handles (27 or so, in this simple case) that are already opened. What are they? Is it normal? Pierre