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

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jan 28 17:02:00 GMT 2020


On Jan 27 21:14, Takashi Yano wrote:
> - 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 the parent. This patch
>   fixes the issue.
> ---
>  winsup/cygwin/fhandler.cc         | 56 +++++++++++++++----------------
>  winsup/cygwin/fhandler.h          | 33 +++++++++++++-----
>  winsup/cygwin/fhandler_console.cc | 40 +++++++++++++++++++++-
>  winsup/cygwin/fhandler_termios.cc | 35 +++++++++----------
>  winsup/cygwin/fhandler_tty.cc     |  2 +-
>  5 files changed, 111 insertions(+), 55 deletions(-)

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20200128/914bd659/attachment.sig>


More information about the Cygwin-patches mailing list