* 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.
This commit is contained in:
Christopher Faylor
2002-10-17 17:45:09 +00:00
parent e9350b6575
commit fef1edbc9a
4 changed files with 20 additions and 0 deletions

View File

@ -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);