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 Date: Fri, 7 Mar 2003 11:49:09 -0500 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: [Fwd: Re: exim fclose() warning message (was Re: 1.3.21)] Message-ID: <20030307164909.GA25015@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <3E68B63E DOT CC299937 AT ieee DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E68B63E.CC299937@ieee.org> User-Agent: Mutt/1.5.1i On Fri, Mar 07, 2003 at 10:09:51AM -0500, Pierre A. Humblet wrote: >Jason has performed the experiment I suggested > >> - What happens when you "strace your_test_case" > >See sc11.log. > >> - What happens when you "strace sh -c 'hostname; your_test_case'" > >See sc11.log2. > >> - What happens when you remove hostname from line above? > >See sc11.log3. > >Everything is fine in case 1, but close fails in cases 2 & 3. >I removed the second log to save space. > >The third log shows that the dup call fails at the wsock level >but Cygwin doesn't care and reports a success !!! > >I have also an unrelated observation: >tty:c (create_tty_master) calls cygwin_gethostname () to fill >the utmp record. That means (I think) we are always loading >wsock when starting a Cygwin program from DOS. When CYGWIN=tty, yes. >I think we should use GetComputerName in that spot. Ok. Could you make that change? cgf