summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2018-09-06 13:05:55 +0200
committerCorinna Vinschen <corinna@vinschen.de>2018-09-06 13:05:55 +0200
commit85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833 (patch)
tree83bfdc083b42f8fbb18325a53b64dd2187a8e92d
parentbf8aabe830d215f13e690b21a682fc37aeb8752c (diff)
downloadcygnal-85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833.tar.gz
cygnal-85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833.tar.bz2
cygnal-85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833.zip
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>
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index c654d66a6..dfb78d4ac 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,