[PATCH] Cygwin: pty: Reduce unecessary input transfer.

Takashi Yano takashi.yano@nifty.ne.jp
Wed Feb 10 12:30:24 GMT 2021


On Wed, 10 Feb 2021 18:02:59 +0900
Takashi Yano wrote:
> - Currently, input transfer is performed every time one line is read(),
>   if the non-cygwin app is running in the background. With this patch,
>   transfer is triggered by setpgid() rather than read() so that the
>   unnecessary input transfer can be reduced much in that situation.
> ---
>  winsup/cygwin/fhandler.h      |  15 +-
>  winsup/cygwin/fhandler_tty.cc | 371 ++++++++++++++++++++--------------
>  winsup/cygwin/spawn.cc        |  76 ++++---
>  winsup/cygwin/tty.cc          |  89 ++++++++
>  winsup/cygwin/tty.h           |  16 +-
>  5 files changed, 371 insertions(+), 196 deletions(-)

Hmm. This patch seems to have some race issues.
Please wait for v2 patch.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-patches mailing list