This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]