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:
authorCorinna Vinschen <corinna@vinschen.de>2007-12-14 14:32:40 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-12-14 14:32:40 +0300
commitcce64750b25abfc19e1a9e75d6c59d3844c56f23 (patch)
tree968cbddc8d4b95043b38e59a4bf7ca729567d61a /winsup/cygwin/spawn.cc
parent3d711a27bae5d6a4e0f7eacc6f8ba38abea38a6c (diff)
* dtable.cc (dtable::set_file_pointers_for_exec): Reenable. Fix
comment. * spawn.cc (spawn_guts): Call cygheap->fdtab.set_file_pointers_for_exec only for non-Cygwin processes.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 6e30b0530..67e064fb1 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -465,7 +465,8 @@ spawn_guts (const char * prog_arg, const char *const *argv,
cygbench ("spawn-guts");
- cygheap->fdtab.set_file_pointers_for_exec ();
+ if (!real_path.iscygexec())
+ cygheap->fdtab.set_file_pointers_for_exec ();
moreinfo->envp = build_env (envp, envblock, moreinfo->envc, real_path.iscygexec ());
if (!moreinfo->envp || !envblock)