[PATCH v3] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Mar 5 16:16:51 GMT 2024
On Mar 5 23:48, Takashi Yano wrote:
> Non-cygwin app may call ReadFile() for empty pipe, which makes
> NtQueryObject() for ObjectNameInformation block in fhandler_pipe::
> get_query_hdl_per_process. Therefore, do not to try to get query_hdl
> for non-cygwin apps.
>
> Addresses: https://github.com/msys2/msys2-runtime/issues/202
>
> Fixes: b531d6b06eeb ("Cygwin: pipe: Introduce temporary query_hdl.")
> Reported-by: Alisa Sireneva, Johannes Schindelin <Johannes.Schindelin@gmx.de>
> Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
> ---
> winsup/cygwin/fhandler/pipe.cc | 57 ++++++++--------------------------
> winsup/cygwin/release/3.5.2 | 4 +++
> 2 files changed, 17 insertions(+), 44 deletions(-)
Looks good, thanks!
Corinna
More information about the Cygwin-patches
mailing list