Fw: dup tty error.

Chris January chris@atomice.net
Sun Jun 30 06:10:00 GMT 2002


originally posted to the wrong list

> Normally i would expect to see this error, say, 1 in 2 times I click the
> Cygwin icon. But yesterday I clicked it about 30 times and I keep getting
> the same error.
> Error follows:
>       3 [main] bash 776 fhandler_base::dup: dup(/dev/tty) failed, handle
B,
> Win32 error 87
> readline: warning: rl_prep_terminal: cannot get terminal settings←]0;~
> ←[32mchris@ADVENT02 ←[33m~←[0m
> See this thread for more details:
> http://sources.redhat.com/ml/cygwin/2002-05/msg01415.html
>
> Attached is a patch which fixes the bug, by giving the console window
title
> more time (up to 1 second) to change. FindWindow is called in a loop, so
for
> the normal execution path there is no extra overhead.
>
> Chris
>
> ---
> 2002-06-30  Christopher January <chris@atomice.net>
>
>  * tty.cc (tty_list::allocate_tty): retry FindWindow if it fails.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Changelog.tty.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020630/8669fbb9/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tty.cc.patch
Type: application/octet-stream
Size: 725 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020630/8669fbb9/attachment.obj>


More information about the Cygwin-patches mailing list