[PATCH v2] Cygwin: pty: Fix screen distortion after less for native apps again.

Takashi Yano takashi.yano@nifty.ne.jp
Thu Jun 4 01:17:27 GMT 2020


On Wed,  3 Jun 2020 18:45:11 +0900
Takashi Yano wrote:
> - Commit c4b060e3fe3bed05b3a69ccbcc20993ad85e163d seems to be not
>   enough. Moreover, it does not work as expected at all in Win10
>   1809. This patch essentially reverts that commit and add another
>   fix. After all, the cause of the problem was a race issue in
>   switch_to_pcon_out flag. That is, this flag is set when native
>   app starts, however, it is delayed by wait_pcon_fwd(). Since the
>   flag is not set yet when less starts, the data which should go
>   into the output_handle accidentally goes into output_handle_cyg.
>   This patch fixes the problem more essentially for the cause of
>   the problem than previous one.

I will submit v3 patch which removes unnecessary (and should not)
guard that uses output mutex.

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


More information about the Cygwin-patches mailing list