[PATCH v2 1/1] Cygwin: pty: Limit API hook to the program linked with the APIs.

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Sep 4 14:00:00 GMT 2019


On Sep  4 22:46, Takashi Yano wrote:
> - API hook used for pseudo console support causes slow down.
>   This patch limits API hook to only program which is linked
>   with the corresponding APIs. Normal cygwin program is not
>   linked with such APIs (such as WriteFile, etc...) directly,
>   therefore, no slow down occurs. However, console access by
>   cygwin.dll itself cannot switch the r/w pipe to pseudo console
>   side. Therefore, the code to switch it forcely to pseudo
>   console side is added to smallprint.cc and strace.cc.
> ---
>  winsup/cygwin/fhandler_tty.cc | 106 +++++++++++++++++++---------------
>  winsup/cygwin/smallprint.cc   |   2 +
>  winsup/cygwin/strace.cc       |  26 +--------
>  winsup/cygwin/winsup.h        |   3 +
>  4 files changed, 66 insertions(+), 71 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/20190904/c7ecc1bf/attachment.sig>


More information about the Cygwin-patches mailing list