This is the mail archive of the
cygwin
mailing list for the Cygwin project.
tcflush bug?
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin <cygwin at cygwin dot com>
- Date: Wed, 25 Feb 2015 11:24:46 -0500
- Subject: tcflush bug?
- Authentication-results: sourceware.org; auth=none
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?
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple