delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=LjyOfWjsAIJTSZYUhwD0par2NpTYSzyrz6DW4lMK0Up | |
NRxkr/Tw2yRB/XxYklh/HD+2+FIiLCQkPAzp1BS9VVpCZ/4oIAi3bEjQ/6lvANKA | |
izxsGlJzKUX6ztlek1qZnbvfqCS+aOKF6gnlZBBhcYBweP/r6NSMYIv9FfOkakls | |
= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=j6sSkPURNIsojzcbSZhIP2+8sCI=; b=tLkPR/9TJc9v2LhvD | |
kKoZfCfHkPgvMVpT5U6PzdWnRCNUiXTLPdZo13VB/MK0Hs2uy9HcAcelsOewAd4C | |
dC0ZYonaQlqszOot/V1Jy5ftPRdklx4iBdAn6n8jHULLjOF8Lwc3B7oinxJLSkN9 | |
DRRFm8kUcU+16n4gqcvNVIBF+w= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
X-HELO: | limerock02.mail.cornell.edu |
X-CornellRouted: | This message has been Routed already. |
Message-ID: | <54EE0119.5000704@cornell.edu> |
Date: | Wed, 25 Feb 2015 12:06:33 -0500 |
From: | Ken Brown <kbrown AT cornell DOT edu> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: tcflush bug? |
References: | <54EDF74E DOT 40207 AT cornell DOT edu> <20150225164831 DOT GJ437 AT calimero DOT vinschen DOT de> <54EDFE59 DOT 1070201 AT cornell DOT edu> |
In-Reply-To: | <54EDFE59.1070201@cornell.edu> |
X-IsSubscribed: | yes |
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). 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |