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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=qcTxPY4vVMPT8mKmMzgSlx1Rf/cRnVd5wak2lV1b20eFNoZIpQlt8 XwyyB4Y5pne6mu589hq1UzcszXnASJNXhXvRkun4GNx0tco/a9k2uvpA8ET6oyoj oAbJGccDPF3mL18cxulb6MmO4whSKq4/GQfZ+IFKt15iNcrdIZh7Nw= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=oO73UkMwBSX6hrnK+6CD6sw3h20=; b=Jt4ED9Y+o52bd/4nD40lcMM2JvDD NmdPeaqrebRICt8k1fmGB7JCUkbbtHqr6fzOoJGd0JQzsHfFxFL9caTU3vP4RnAW Jxbot5OAngpdgdjVvQMAK6ysKQFV+uxqVF99AXM87+AwTn4G/5iaeaSdESw6l4j1 ErV7mcCG5NqbSD4= 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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Wed, 25 Feb 2015 17:48:31 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: tcflush bug? Message-ID: <20150225164831.GJ437@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <54EDF74E DOT 40207 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YTqNa7If1bmePjLb" Content-Disposition: inline In-Reply-To: <54EDF74E.40207@cornell.edu> User-Agent: Mutt/1.5.23 (2014-03-12) --YTqNa7If1bmePjLb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 25 11:24, Ken Brown wrote: > While debugging a clisp problem, I encountered what I think is a bug in C= ygwin's tcflush. Here's an STC: >=20 > $ cat test_tcflush.c > #include > #include > #include > #include >=20 > int > main () > { > if (tcflush (0, TCIFLUSH) =3D=3D -1) > fprintf (stderr, "Can't flush standard input: %s\n", strerror (errno)= ); > return 0; > } >=20 > $ gcc test_tcflush.c -o test_tcflush >=20 > $ ./test_tcflush.exe > Can't flush standard input: Resource temporarily unavailable >=20 > 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, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --YTqNa7If1bmePjLb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU7fzfAAoJEPU2Bp2uRE+gG34QAIPnpvMZGgF+n2jp8jc3hf/L z0QQUgV1OtkW/lFMi+DflBIr9uMLg8WJmhuEioxIqwcs81NgD1ePTUClX3pG76z8 2m/kvnMPht/w/aHlgNsZvTzY76jiVVhPeoH/66VaOnQkrWJqnnRh8G714cqg/uaY 8Kr10BAdh12jvZ3zUzZ2cSBCGgEaggY4+UK803CVDTRRezXALddea7z6f5VrF2eP TJLTAoU38NT4g/p/HBKXqSD4E1DGyHw+MsgksgDVyPK0yvTxb9ujSnqpWpguWNAM Lt2aX5WKXIQm2fBJN4SUUUYCFiwv/ttOjNSEzP/uTqWwq4kLi8vcxP850JJccYnW xU+E2uuOJeYUr4fLfUmZo41DVZITjbYplp2D6f2tzSdYd5jYSk28tIpe1cdWXqnT JQCnFdq79xG8v+2LjVSR9ChZ2CndLM+G4qW4kWO+ewTL+k8i2ox39zhdpu8Y+Gh2 nn1XqU8eLKKNuSMrUJeE3fhJbhxMipYuCSDWZrtXZOYv8uWZAdf6hmhkqnZLqch8 PqWNPDHP/dCoIC9vFU3q7+aHi24Td3/DuQr/z3nwdxkI5PDhFgplN61YPlA6N2a2 +bloFcSpb2MLc5O7zEk3hhqKuYb00/FfmL4huncb2Xqzw/s9NY1PSfAykJ3PRpdM 0OkGEdMatYZED5onQf+P =x7dT -----END PGP SIGNATURE----- --YTqNa7If1bmePjLb--