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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Xjjgi3SdC7cn/IE3 3k27Ovn9WNzz2PLgg/xS7NilHVt6Ldumkv/Y/ueLO9GmEb9UeLUvXaio9dUowBv0 EXZGhxHW6x2o8ESzC0tVKU2/GncW1BL1bfQuUtlhC20aS41mDg0gpF4BV0XJSoAa t0JEOxHMDfwmueE0XjflTHehvHE= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=RkzrKq0QWcFMDkwlftNU0/ FTDjE=; b=JAfKoDyBsQ5A6VUaZKi7io2J1Mcrgo69VPEaP66KPauQ8TNNiyKKsF 48Bf4UOFvJWX9RgR/7Ro0pdC3b7bLC79sAB3YYdQbdIK86AGqmGAYtdqBJy0cEPC MhS3q5YXhhw2ip3sEJEs1gMpr/8ew1BFY1HzqSFqxuDh1pbktw7x4= 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=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:275 X-HELO: limerock03.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: fflush(NULL) empties stdin To: cygwin AT cygwin DOT com References: <20170826215224 DOT GD10378 AT dinwoodie DOT org> From: Ken Brown Message-ID: <0dfe7065-d8fc-eb99-977f-7baa319fcf17@cornell.edu> Date: Sat, 26 Aug 2017 19:57:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170826215224.GD10378@dinwoodie.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes On 8/26/2017 5:52 PM, Adam Dinwoodie wrote: > Hello, > > I seem to have found a bug in Cygwin's fflush implementation, where > fflush(NULL) is unexpectedly flushing stdin. This has already been fixed. Have you tried the latest 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