This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: fhandler.cc rev=1.116 source code level bug in fhandler_base::dup (fhandler_base *child)
- From: "Chris January" <chris at atomice dot net>
- To: <cygwin at cygwin dot com>
- Date: Wed, 22 May 2002 17:50:14 +0100
- Subject: Re: fhandler.cc rev=1.116 source code level bug in fhandler_base::dup (fhandler_base *child)
- References: <001101c201a8$2148fc40$df250b93@ALASTIMSON>
> 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/