delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/22/13:33:17

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
X-WM-Posted-At: avacado.atomice.net; Wed, 22 May 02 17:50:14 +0100
Message-ID: <000701c201b0$bec63d90$0100a8c0@advent02>
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin AT cygwin DOT com>
References: <001101c201a8$2148fc40$df250b93 AT ALASTIMSON>
Subject: Re: fhandler.cc rev=1.116 source code level bug in fhandler_base::dup (fhandler_base *child)
Date: Wed, 22 May 2002 17:50:14 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019