delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/17/14:40:46

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 A3BD03858413
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=Yy7yJFe77ZWYlbOA1LqkmELG7XA/vXH+0hSTOl84Gj0=;
b=FRfCm25PomnBWMuuRTFdR8r/yga8XidVBkjkiKgOGNzb+Ym/Dcl5vbCapur3Qj5le4
Hn6pAJgBryFFaRnOrSDYlg9Wg6lr6mDPrMLpiihZ1lyRpvnroff8KfC0N4AOfDDTAneC
1oPcc2wbthAL/PPyG+8iWaadD0nQhIirPbkX0xWOCTk3iok+sxaixOnABZZpO7Uoj1dg
k39itWqD8f0dMb79rWTyNyePNcjari1RkwhuOV3ozcW5zlG6qB3IqMEEblGl7IXP9IPH
2+Q2wtd3PDUkl5J5o27DyUBvbZ4pRVedvvFAi1mQs9PZ84k3F0if2srYGSuvgdlme3La
LxWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=Yy7yJFe77ZWYlbOA1LqkmELG7XA/vXH+0hSTOl84Gj0=;
b=uwBnB4SL7XafXzikKsnar61ALbg3M9veqUeQAkrgcCd3/omRUBAK/MT+tX6D6h634N
djLMx8cPOVS1p+EzJXO16YjX697BpJSbyD+ROmzBCG5yNLzA4jPBhzYdAMivWIvWKsbl
23F7I5ruAxolG3EK8ah7w7GDL9K61yIuYuiz6XDyaPoAGxeI1PgWj2B211RrgVhachLp
dwHmA4K5+OmIka56Nu75bTYW02LQ/FtKzHntpcxjLJiRkFxOACy5RqK1Eb9jmbON11RO
qPuhGFfKgW9nzXtOcGJmjuQNDxz5XOtVbegAeeiXMfL6qpVFaSAs07OAfdKyzfiKMt1m
2zbQ==
X-Gm-Message-State: AOAM532U+8Gi7G8eI8/OrrwqlR3CmM37Wla5wM/I9jgSnEG8yyAfHVV9
iLd79K+JIF0qkc+lG7g/anN5Hld/CEZNcQQ5SIc=
X-Google-Smtp-Source: ABdhPJwrsP32QtR6UyMYp6/ZyCKPi786sCy3jKYEszPG/PpQYJvygK3SjDqgoFvssYenPSbVDMxDqwnfXSlgaaLxH7M=
X-Received: by 2002:a05:6638:4093:b0:319:cae4:2eeb with SMTP id
m19-20020a056638409300b00319cae42eebmr2930048jam.127.1647542426784; Thu, 17
Mar 2022 11:40:26 -0700 (PDT)
MIME-Version: 1.0
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>
<20220312063625 DOT 9ca3d42d4e2e941a13fa7909 AT nifty DOT ne DOT jp>
In-Reply-To: <20220312063625.9ca3d42d4e2e941a13fa7909@nifty.ne.jp>
From: Orgad Shaneh <orgads AT gmail DOT com>
Date: Thu, 17 Mar 2022 20:40:15 +0200
Message-ID: <CAGHpTBLe0D9gQaK=4A91w5eravsygpWe001DhcB=hhrcLx6YWA@mail.gmail.com>
Subject: Re: Typed characters are mis-ordered when CPU usage is high
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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-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: cygwin AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Fri, Mar 11, 2022 at 11:36 PM Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> wrote:
> 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>

Thank you very much. Looks better now.

I'm sorry for nudging, but on msys2 I still get frequent mistypes when
typing fast.

I (still) don't have a consistent reproduction, but if I get it
correctly, it looks like one or more characters I type right when the
prompt appears show up before the buffered characters.

For instance, I run git fetch, and while it is running I type git
status, *sometimes* 1-2 characters "pop" to the left, so I get
something like tgit satus.

I wasn't able to reproduce it with cygwin, but on msys2 (with cygwin
3.3 branch merged in) it happens to me all the time :/

- Orgad

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