public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] Cygwin: console: Suppress unnecessary open_shared_console() calls.
@ 2023-03-07  2:32 Takashi Yano
  0 siblings, 0 replies; only message in thread
From: Takashi Yano @ 2023-03-07  2:32 UTC (permalink / raw)
  To: cygwin-patches; +Cc: Takashi Yano

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
---
 winsup/cygwin/fhandler/console.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler/console.cc b/winsup/cygwin/fhandler/console.cc
index 4a4cf1897..d4b09dc79 100644
--- a/winsup/cygwin/fhandler/console.cc
+++ b/winsup/cygwin/fhandler/console.cc
@@ -645,7 +645,7 @@ scan_console (HWND hw, LPARAM lp)
        {
 	 *p->shared_console_info = cs;
 	 CloseHandle (h);
-	 return TRUE;
+	 return FALSE;
        }
       UnmapViewOfFile ((void *) cs);
       CloseHandle (h);
-- 
2.39.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-07  2:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07  2:32 [PATCH] Cygwin: console: Suppress unnecessary open_shared_console() calls Takashi Yano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).