This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: console: device context is process private
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 6 Sep 2018 11:06:07 -0000
- Subject: [newlib-cygwin] Cygwin: console: device context is process private
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833
commit 85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Sep 6 13:05:55 2018 +0200
Cygwin: console: device context is process private
Make sure device context is not copied to forked process.
It is a process-specific datastructure.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
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 c654d66..dfb78d4 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -1982,7 +1982,7 @@ static const wchar_t replacement_char[NUM_REPLACEMENT_CHARS] =
/* nFont member is always 0 so we have to use the facename. */
static WCHAR cons_facename[LF_FACESIZE];
static int rp_char_idx;
-static HDC cdc;
+static NO_COPY HDC cdc;
static int CALLBACK
enum_proc (const LOGFONTW *lf, const TEXTMETRICW *tm,