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>2013-08-23 22:19:46 +0400
committerChristopher Faylor <me@cgf.cx>2013-08-23 22:19:46 +0400
commit1560d3e28184be3b7701b83866eac46136cf6a9a (patch)
treeac6d9eedc853d0a6bd9b736e6d1676538f92db36 /winsup/cygwin/spawn.cc
parent0d585a6e8cba126905599faf72b2de56f71ad81f (diff)
cygwin changes:
* spawn.cc (child_info_spawn): Revert previous change. Always set lpReserved2. * release/1.7.25: Change wording. doc changes: * new-features.xml (ov-new1.7.25): Change wording.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index bd0ec177f..74c5fa40c 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -554,17 +554,8 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
__stdout = in__stdout;
record_children ();
- /* Don't propagate the child_info_spawn structure to the process if it
- hasn't been recognized as a Cygwin executable. This also covers Cygwin
- executables of a different target (32 vs. 64 bit). Native processes
- usually still work, even if lpReserved2 contains garbage from their
- point of view, but Cygwin processes of different bitsize will recognize
- it as Cygwin info and get all excited about the differences. */
- if (real_path.iscygexec ())
- {
- si.lpReserved2 = (LPBYTE) this;
- si.cbReserved2 = sizeof (*this);
- }
+ si.lpReserved2 = (LPBYTE) this;
+ si.cbReserved2 = sizeof (*this);
/* Depends on set call above.
Some file types might need extra effort in the parent after CreateProcess