* spawn.cc (spawn_guts): Move ch.set() call back to where it was supposed to

be.
This commit is contained in:
Christopher Faylor 2006-04-13 16:11:06 +00:00
parent bee0f85727
commit 853f84e53c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-13 Christopher Faylor <cgf@timesys.com>
* spawn.cc (spawn_guts): Move ch.set() call back to where it was
supposed to be.
2006-04-13 Corinna Vinschen <corinna@vinschen.de>
* sysconf.cc (sysconf): Add _SC_THREADS, _SC_THREAD_ATTR_STACKSIZE,

View File

@ -462,7 +462,6 @@ spawn_guts (const char * prog_arg, const char *const *argv,
cygheap->fdtab.set_file_pointers_for_exec ();
ch.set (chtype, real_path.iscygexec ());
moreinfo->envp = build_env (envp, envblock, moreinfo->envc, real_path.iscygexec ());
if (!moreinfo->envp || !envblock)
{
@ -470,6 +469,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
res = -1;
goto out;
}
ch.set (chtype, real_path.iscygexec ());
ch.moreinfo = moreinfo;
si.lpReserved2 = (LPBYTE) &ch;