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

2020-01-25 Thread Takashi Yano
Hi Corinna, On Fri, 24 Jan 2020 12:07:30 +0100 Corinna Vinschen wrote: > Too bad. It's pretty strange that CreatePseudoConsole returns a > valid HPCON but then isn't ready to take input immediately. > > > I do not come up with other implementation so far. > > > > Let me consider a while. > >

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

2020-01-25 Thread Takashi Yano
Hi Corinna, On Fri, 24 Jan 2020 11:26:27 +0100 Corinna Vinschen wrote: > On Jan 23 22:05, Takashi Yano wrote: > > On Thu, 23 Jan 2020 13:48:13 +0100 > > Corinna Vinschen wrote: > > > On Jan 23 13:33, Takashi Yano wrote: > > > > - Following console APIs are additionally hooked for cygwin programs

[PATCH] Cygwin: console: Share readahead buffer within the same process.

2020-01-25 Thread Takashi Yano
- The cause of the problem reported in https://www.cygwin.com/ml/cygwin/2020-01/msg00220.html is that the chars input before dup() cannot be read from the new file descriptor. This is because the readahead buffer (rabuf) in the console is newly created by dup(), and does not inherit from