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 :content-type:content-transfer-encoding; q=dns; s=default; b=mPQ wd1JCAOLAXidmXAeGDF6YL9pgUWSt6jLI/QeBKeK9YkW7cgA2FJT91iWnayodOt4 tLvRFxjGkH3pFdazoj8rncpo2PhPpb3U8ke9UETSXZIrJZ/C8NQXJtZPghefY32/ SBYKJPPd6LkNK3bUDFQBFUYh+QgMQZjEZ/01AIiw= 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 :content-type:content-transfer-encoding; s=default; bh=ENOCXUMDt 0XZYDplMKOqgY1+7UE=; b=QSKMemNJWJsmfdPKXOfYBuOXVx9DEvRZFuCOredRG Kzvd/BnIiZSMkyc4iP2gcWEQtDlUUItHSmKhLd2d8bjWJ/METV/6HCMvAg3W/TZK S5QK4aAGW5zv4mL+BPjtXAKehCTdnPfBfU5nAz3eqrKKkW5EiIFbErMs35ryVFN3 Es= 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: limerock02.mail.cornell.edu X-CornellRouted: This message has been Routed already. Message-ID: <54EDF74E.40207@cornell.edu> Date: Wed, 25 Feb 2015 11:24:46 -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 Subject: tcflush bug? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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? 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