]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pipe: Simplify chhecking procedure of query_hdl.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 5 Mar 2024 14:34:21 +0000 (23:34 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 5 Mar 2024 18:44:37 +0000 (03:44 +0900)
commitc2310061c66a100653fe10762859b8adb6a3d357
tree84efb84c2189627c6f73ad014ee4a5774ff7c98d
parent46bb999a8945f4d3243f560b5cbd71e18113fb01
Cygwin: pipe: Simplify chhecking procedure of query_hdl.

This patch eliminates verbose NtQueryObject() calls in the procedure
to get query_hdl by storing pipe name into fhandler_base::pc when
the pipe is created.  fhandler_pipe::temporary_query_hdl() uses the
storedpipe name rather than the name retrieved by NtQueryObject().

Suggested-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/pipe.cc
winsup/cygwin/local_includes/fhandler.h
This page took 0.0306 seconds and 5 git commands to generate.