summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-17 17:45:09 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-17 17:45:09 +0000
commitfef1edbc9a4ca63fdb801f78086d442bce1da40f (patch)
treed05317f5b2ba6fe622957cad2bc93157393dbdd9 /winsup/cygwin/spawn.cc
parente9350b6575f296f1e46a867480112300498b467b (diff)
downloadcygnal-fef1edbc9a4ca63fdb801f78086d442bce1da40f.tar.gz
cygnal-fef1edbc9a4ca63fdb801f78086d442bce1da40f.tar.bz2
cygnal-fef1edbc9a4ca63fdb801f78086d442bce1da40f.zip
* dtable.cc (dtable::set_file_pointers_for_exec): New function.
* dtable.h (dtable::set_file_pointers_for_exec): Declare new function. * spawn.cc (spawn_guts): Call dtable::set_file_pointers_for_exec to set pointers to EOF when execing non-cygwin applications.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 6bc76fba3..9c055c819 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -621,6 +621,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
cygbench ("spawn-guts");
+ cygheap->fdtab.set_file_pointers_for_exec ();
if (!cygheap->user.issetuid ())
{
PSECURITY_ATTRIBUTES sec_attribs = sec_user_nih (sa_buf);