delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/11/16:37:32

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 <takashi DOT yano AT nifty DOT ne DOT jp>
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: <CAGHpTBKU5XQJ6mjsvb94LnbJb5xj3uoRMtt3KgsMx1NjpM5hSg@mail.gmail.com>
References: <CAGHpTBKbqxWQ+WOc=UZH1a155gHhNc4ogVE0sP=rCw7q5xoNpQ AT mail DOT gmail DOT com>
<20220227235303 DOT 5d6239724ed83b145772134b AT nifty DOT ne DOT jp>
<20220302081259 DOT 2a7e522ef1a9e3e6da0aa259 AT nifty DOT ne DOT jp>
<CAGHpTBLc9waVzjKWb84C5KS+s9uKENrOMAxxfBBrvPR-zKKtPQ AT mail DOT gmail DOT com>
<20220303090208 DOT 4a04e35756b7868fe9b4701d AT nifty DOT ne DOT jp>
<CAGHpTBKU5XQJ6mjsvb94LnbJb5xj3uoRMtt3KgsMx1NjpM5hSg AT mail DOT gmail DOT com>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: Orgad Shaneh <orgads AT gmail DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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 <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019