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=CgAGIWtTZ2XMPdbtRzP39MM8YAkwLjOxcuVVWaC6tHP l0alA+HcGefggdGNrfmD7K493LpK0tBUpSmrpqXn1i/fYYBd5S37yqggvwaYqqaQ Cuf+PVlW1zmtfxrn+sPDzZ2FZVe30DIAEugi/BE1b4FCr7yan9YAKiweTQ2lLld8 = 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=L1sCgSiW815w6bzM/+JPPJQLDM0=; b=DBuiwFjhv/o273m4T xbOULgYfDCleM3sqvm9g+mBhNCJ7slIJqKQjz5wDQvwbgiiVsWWKzEBAnFo0RDfo 74deU+1Au/PpaDg0GuVhAe5087LX2TdRnwJzJQF1Jgyg72TSvxybfVZ+tnEqPae3 DgVEMzLtuTJHHBU6/jaAzrgTA8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: limerock01.mail.cornell.edu X-CornellRouted: This message has been Routed already. Message-ID: <54EDFE59.1070201@cornell.edu> Date: Wed, 25 Feb 2015 11:54:49 -0500 From: Ken Brown 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> In-Reply-To: <20150225164831.GJ437@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 >> #include >> #include >> #include >> >> 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. 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