From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5582 invoked by alias); 22 May 2002 16:47:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5540 invoked from network); 22 May 2002 16:47:08 -0000 Received: from unknown (HELO imailg3.svr.pol.co.uk) (195.92.195.181) by sources.redhat.com with SMTP; 22 May 2002 16:47:08 -0000 Received: from modem-294.cougar.dialup.pol.co.uk ([217.134.225.38] helo=avacado.atomice.net) by imailg3.svr.pol.co.uk with esmtp (Exim 3.35 #1) id 17AZGV-0004w0-00 for cygwin@cygwin.com; Wed, 22 May 2002 17:47:08 +0100 Received: from advent02 [127.0.0.1] (chris@atomice.net); Wed, 22 May 2002 17:50:14 +0100 X-WM-Posted-At: avacado.atomice.net; Wed, 22 May 02 17:50:14 +0100 Message-ID: <000701c201b0$bec63d90$0100a8c0@advent02> From: "Chris January" To: References: <001101c201a8$2148fc40$df250b93@ALASTIMSON> Subject: Re: fhandler.cc rev=1.116 source code level bug in fhandler_base::dup (fhandler_base *child) Date: Wed, 22 May 2002 13:24:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-05/txt/msg01419.txt.bz2 > I might be wrong but it looks like: > > In the function below > ------------------------ > if (get_nohandle ()) > nh = NULL; // NULL == 0 and is a valid (but possibly closed) handle > > ------------------------ > MUST BE > ------------------------ > if (get_nohandle ()) > nh = (HANDLE)-1; // or better yet INVALID_HANDLE_VALUE > I just wish I could figure out what causes the 'dup(/dev) failed' errors I see about 30% of the time I click cygwin.bat. Chris -- 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/