Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 6 Jun 2002 19:49:17 -0400 From: Christopher Faylor <cgf AT redhat DOT com> To: cygwin AT cygwin DOT com Subject: Re: 1.3.11(CVS): Possible bug involving temp file generation Message-ID: <20020606234917.GC11320@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020605132012 DOT 8086 DOT qmail AT web21002 DOT mail DOT yahoo DOT com> <12220356170 DOT 20020605154358 AT syntrex DOT com> <20020605150849 DOT GF15167 AT redhat DOT com> <17118445663 DOT 20020606162210 AT syntrex DOT com> <20020606165907 DOT F22789 AT cygbert DOT vinschen DOT de> <13925672855 DOT 20020606182237 AT syntrex DOT com> <20020606234735 DOT GB11320 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020606234735.GB11320@redhat.com> User-Agent: Mutt/1.3.23.1i On Thu, Jun 06, 2002 at 07:47:35PM -0400, Christopher Faylor wrote: >On Thu, Jun 06, 2002 at 06:22:37PM +0200, Pavel Tsekov wrote: >>>> I have a question - what is the return value of NtQueryObject () if >>>> the ntdll.dll is not found i.e. you're executing on Win9x ? Is it 0 or >>>> -1 ? It seems from the strace.log the it is 0 but I want to be sure. >>>> >>>> If it is 0 there is a problem - see below: >> >>CV> It's not 0. See autoload.cc. >> >>I've just tested this by the following change in autoload.cc: >> >>LoadDLLfuncEx2 (NtQueryObject, 20, ntdlltest, 1, 1) >> >>There is no ntdlltest.dll on my machine though the call to >>NtQueryObject () returns 0. > >Yep. It's a bug. I just fixed it in CVS. > >Thanks. I should reiterate that this code is *only* called when a cygwin process is invoked from a non-cygwin process with stdin/stdout/stderr redirected to a disk file. It has nothing to do with temp file creation or normal file creation. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/