diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 153e3847f..cd73e6e87 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1439,7 +1439,7 @@ private: ssize_t __stdcall write (const void *ptr, size_t len); void doecho (const void *str, DWORD len) { (void) write (str, len); } int close (); - static bool exists () {return !!GetConsoleCP ();} + static bool exists () {return shared_console_info && !!GetConsoleCP ();} int tcflush (int); int tcsetattr (int a, const struct termios *t);