[PATCH] Cygwin: pty: Add missing console API hooks.

2020-01-22 Thread Takashi Yano
- Following console APIs are additionally hooked for cygwin programs which directly call them. * FillConsoleOutputAttribute() * FillConsoleOutputCharacterA() * FillConsoleOutputCharacterW() * ScrollConsoleScreenBufferA() * ScrollConsoleScreenBufferW() --- winsup/cygwin/fhandler_tty.cc

[PATCH v2] Cygwin: pty: Revise code waiting for forwarding again.

2020-01-22 Thread Takashi Yano
- After commit 6cc299f0e20e4b76f7dbab5ea8c296ffa4859b62, outputs of cygwin programs which call both printf() and WriteConsole() are frequently distorted. This patch reverts waiting function to dumb Sleep(). --- winsup/cygwin/fhandler_tty.cc | 30 +++--- winsup/cygwin/

Re: [PATCH] Cygwin: allow opening an AF_LOCAL/AF_UNIX socket with O_PATH

2020-01-22 Thread Ken Brown
On 1/20/2020 4:35 AM, Corinna Vinschen wrote: > On Jan 19 20:25, Ken Brown wrote: >> On 1/17/2020 4:51 AM, Corinna Vinschen wrote: >>> On Jan 17 10:48, Corinna Vinschen wrote: On Jan 16 18:34, Ken Brown wrote: > If that flag is not set, or if an attempt is made to open a different > ty

[PATCH] Cygwin: pty: Revise code waiting for forwarding again.

2020-01-22 Thread Takashi Yano
- After commit 6cc299f0e20e4b76f7dbab5ea8c296ffa4859b62, outputs of cygwin programs which call both printf() and WriteConsole() are frequently distorted. This patch reverts waiting function to dumb Sleep(). --- winsup/cygwin/fhandler_tty.cc | 30 +++--- winsup/cygwin/

Re: [PATCH v2] Cygwin: pty: Revise code waiting for forwarding by master_fwd_thread.

2020-01-22 Thread Takashi Yano
On Thu, 23 Jan 2020 01:00:11 +0900 Takashi Yano wrote: > /* Test code */ > #include > #include > > int main() > { > DWORD n; > printf("\n"); > WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "\r\n", 6, &n, 0); > return 0; > } The problem occurs when the code above is compi

Re: [PATCH v2] Cygwin: pty: Revise code waiting for forwarding by master_fwd_thread.

2020-01-22 Thread Takashi Yano
Hi Corinna, On Tue, 21 Jan 2020 10:37:35 +0100 Corinna Vinschen wrote: > On Jan 21 11:22, Takashi Yano wrote: > > - Though this rarely happens, sometimes the first printing of non- > > cygwin process does not displayed correctly. To fix this issue, > > the code for waiting for forwarding by ma

Re: [PATCH v2] Cygwin: pty: Introduce disable_pcon in environment CYGWIN.

2020-01-22 Thread Corinna Vinschen
On Jan 21 22:25, Takashi Yano wrote: > - For programs which does not work properly with pseudo console, > disable_pcon in environment CYGWIN is introduced. If disable_pcon > is set, pseudo console support is disabled. Pushed. I just fixed a missing in the doc text. Thanks, Corinna -- Cor

Re: [PATCH] Cygwin: pty: Fix reopening slave in push_to_pcon_screenbuffer().

2020-01-22 Thread Corinna Vinschen
On Jan 21 23:41, Takashi Yano wrote: > - For programs compiled with -mwindows option, reopening slave is > needed in push_to_pcon_screenbuffer(), however, it was not at > appropriate place. This causes the problem reported in > https://www.cygwin.com/ml/cygwin/2020-01/msg00161.html. This >