summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-04 11:45:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-03-04 11:45:58 +0000
commit06281845fbd395b232779dbc5213fbfcf6c428d1 (patch)
treecb6a58d6493ae935f21a3145bdb4d4fc41da73e9 /winsup/cygwin/dcrt0.cc
parent538fc09416ae01d974838085a186d5a2424d5aa8 (diff)
downloadcygnal-06281845fbd395b232779dbc5213fbfcf6c428d1.tar.gz
cygnal-06281845fbd395b232779dbc5213fbfcf6c428d1.tar.bz2
cygnal-06281845fbd395b232779dbc5213fbfcf6c428d1.zip
* dcrt0.cc (disable_dep): Disable. Explain why.
(dll_crt0_0): Disable calling disable_dep. Explain why.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 9ffbd72ff..53a3228c7 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -623,6 +623,10 @@ child_info_spawn::handle_spawn ()
fixup_lockf_after_exec ();
}
+#if 0
+/* Setting the TS-aware flag in the application's PE header is sufficient.
+ Just keep this in as a reminder. */
+
static DEP_SYSTEM_POLICY_TYPE dep_system_policy = (DEP_SYSTEM_POLICY_TYPE) -1;
static void
@@ -647,6 +651,7 @@ disable_dep ()
if (ppolicy > 0 && !perm && !SetProcessDEPPolicy (0))
debug_printf ("SetProcessDEPPolicy: %E");
}
+#endif
void __stdcall
dll_crt0_0 ()
@@ -712,10 +717,11 @@ dll_crt0_0 ()
events_init ();
tty_list::init_session ();
- /* FIXME: This is hopefully a temporary hack, at least until the support
- case at Microsoft has been closed one way or the other.
+#if 0
+ /* Setting the TS-aware flag in the application's PE header is sufficient.
+ Just keep this in as a reminder. */
- The disable_dep function disables DEP for all Cygwin processes if
+ /* The disable_dep function disables DEP for all Cygwin processes if
the process runs on a Windows Server 2008 with Terminal Services
installed. This combination (TS+DEP) breaks *some* Cygwin
applications. The Terminal Service specific DLL tsappcmp.dll
@@ -732,6 +738,7 @@ dll_crt0_0 ()
Idle idea: Adding EXECUTE protection to all text segment pages? */
if (wincap.ts_has_dep_problem ())
disable_dep ();
+#endif
debug_printf ("finished dll_crt0_0 initialization");
}