Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-07 00:12:20 +0400
committerChristopher Faylor <me@cgf.cx>2011-05-07 00:12:20 +0400
commitf4c566233f28f747fce3c21031f6f3d47a0a6643 (patch)
tree7d159d3990ea04f5dedfcc83343f176129ebd201 /winsup/cygwin/fhandler_console.cc
parentb66dba56c5f076c992f9dfc0f8f9dae29d1e9500 (diff)
* fhandler.cc (fhandler_base::dup): Avoid duping a handle when an fhandler has
an archetype. * fhandler_console.cc (fhandler_console::invisible_console): Move to the top. (fhandler_console::set_close_on_exec): Don't set close-on-exec on handle since it's an archetype and you don't know how many things could be using it.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 8fe4414cc..55e9b3ee8 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -56,6 +56,8 @@ const unsigned fhandler_console::MAX_WRITE_CHARS = 16384;
static console_state NO_COPY *shared_console_info;
+bool NO_COPY fhandler_console::invisible_console;
+
dev_console NO_COPY *fhandler_console::dev_state;
static void
@@ -2103,8 +2105,7 @@ fhandler_console::igncr_enabled ()
void
fhandler_console::set_close_on_exec (bool val)
{
- fhandler_base::set_close_on_exec (val);
- set_no_inheritance (output_handle, val);
+ close_on_exec (val);
}
void __stdcall
@@ -2123,8 +2124,6 @@ fhandler_console::fixup_after_fork_exec (bool execing)
get_tty_stuff ();
}
-bool NO_COPY fhandler_console::invisible_console;
-
// #define WINSTA_ACCESS (WINSTA_READATTRIBUTES | STANDARD_RIGHTS_READ | STANDARD_RIGHTS_WRITE | WINSTA_CREATEDESKTOP | WINSTA_EXITWINDOWS)
#define WINSTA_ACCESS WINSTA_ALL_ACCESS