fhandler.cc rev=1.116 source code level bug in fhandler_base::dup (fhandler_base *child)
Chris January
chris@atomice.net
Wed May 22 13:24:00 GMT 2002
> 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/
More information about the Cygwin
mailing list