This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Revert "cygwin: only expose /dev/con{in, out, sole} when started from a Windows console";h=21a39b20a53d6c26959296765a7006af377ce37b

commit 21a39b20a53d6c26959296765a7006af377ce37b
Author: Yaakov Selkowitz <>
Date:   Mon Sep 11 13:21:46 2017 -0500

    Revert "cygwin: only expose /dev/con{in,out,sole} when started from a Windows console"
    This caused serious regressions when running from a cmd window:
    This reverts commit b706c6b479422d31f0124b92c21b4cb536bbddff.
    Signed-off-by: Yaakov Selkowitz <>

 winsup/cygwin/fhandler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index cd73e6e..153e384 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 shared_console_info && !!GetConsoleCP ();}
+  static bool exists () {return !!GetConsoleCP ();}
   int tcflush (int);
   int tcsetattr (int a, const struct termios *t);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]