tcflush bug?
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Feb 25 17:51:00 GMT 2015
On Feb 25 12:06, Ken Brown wrote:
> On 2/25/2015 11:54 AM, Ken Brown wrote:
> >On 2/25/2015 11:48 AM, Corinna Vinschen wrote:
> >>On Feb 25 11:24, Ken Brown wrote:
> >>>While debugging a clisp problem, I encountered what I think is a bug
> >>>in Cygwin's tcflush. Here's an STC:
> >>>
> >>>$ cat test_tcflush.c
> >>>#include <termios.h>
> >>>#include <errno.h>
> >>>#include <string.h>
> >>>#include <stdio.h>
> >>>
> >>>int
> >>>main ()
> >>>{
> >>> if (tcflush (0, TCIFLUSH) == -1)
> >>> fprintf (stderr, "Can't flush standard input: %s\n", strerror
> >>>(errno));
> >>> return 0;
> >>>}
> >>>
> >>>$ gcc test_tcflush.c -o test_tcflush
> >>>
> >>>$ ./test_tcflush.exe
> >>>Can't flush standard input: Resource temporarily unavailable
> >>>
> >>>Am I misunderstanding how this should work, or is this a bug?
> >>
> >>A bug in the pty code (observe this working correctly in a Windows
> >>console). I applied a fix to CVS. Do you need a snapshot?
> >
> >Thanks for the quick fix! No, I don't need a snapshot.
>
> And I can confirm that it fixes the problem (and the original clisp
> problem).
Yay!
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150225/b7182dc2/attachment.sig>
More information about the Cygwin
mailing list