X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B35B43858D3C Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 22BLaIGU011038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1647034578; bh=6isy8329HjtydyS7ETGipawA6QLOpuDej5PciRXuGLM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TzF/6vCeVDOTPImDnXjxy3YOXpt8O9ktHa4CrgI9LcMQtgHjNAIAkL25QfI3VvaeE 2rHNbFU7+Zx93Xgvf7lccc/SPC+Iz1PKjIWdCmjVxFnembBwvnvZBLIJhgRvsq6gN5 2neB2cfjI3zuvnmd46IIgv0Z6CJpO1ZnBbe1EGupaE/Vje26BQ435lbGBr+1eutW6R s+18Kci4JstdIaBiCw09eEUKB9V2aJtLKJvFwYR2c+W2vWorvMwvOlKChNw0BsN+WE vLyG8Dpcl2zONElf3wJP82dKE7hwpkGdlH1FqgbixSd6tTvVHTl+L0R2UGQajwArw/ 2rI2Ehm63fgEQ== X-Nifty-SrcIP: [119.150.36.16] Date: Sat, 12 Mar 2022 06:36:25 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: Typed characters are mis-ordered when CPU usage is high Message-Id: <20220312063625.9ca3d42d4e2e941a13fa7909@nifty.ne.jp> In-Reply-To: References: <20220227235303 DOT 5d6239724ed83b145772134b AT nifty DOT ne DOT jp> <20220302081259 DOT 2a7e522ef1a9e3e6da0aa259 AT nifty DOT ne DOT jp> <20220303090208 DOT 4a04e35756b7868fe9b4701d AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Orgad Shaneh Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Thu, 10 Mar 2022 15:17:03 +0200 Orgad Shaneh wrote: > After using it on more scenarios (3.3 branch), I see have strange problems. > > For example, if I run git log -1 and immediately type, my input is > lost until the prompt appears again. > > It doesn't happen with other commands like git status, I'm not sure > why there's a difference. Thanks for the report. This is not a new problem but has been occurring for many years. I looked into this problem and found the cause. This seems to be due to a bug of fsync(). Cygwin's fsync() flushes the console input buffer unlike linux. I will propose a patch for this issue. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple