* path.h (cwdstuff): Move class.

* cygheap.h (cwdstuff): To here.
(init_cygheap): Add cwd field.
* child_info.h (cygheap_exec_info): Eliminate cwd stuff.
(child_info_spawn): Ditto.
* dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call.  Convert cygcwd
reference to cygheap->cwd.
* path.cc: Ditto, throughout.
(cwdstuff::copy): Eliminate.
(cwdstuff::fixup_after_exec): Ditto.
* spawn.cc (spawn_guts): Eliminate call to cygcwd.copy.
* fhandler.h (FH_OSS_DSP): Move into "fast" device category.
This commit is contained in:
Christopher Faylor
2001-04-17 03:52:08 +00:00
parent 7ade56ca6a
commit 431ba7dd33
8 changed files with 48 additions and 70 deletions

View File

@@ -701,9 +701,6 @@ dll_crt0_1 ()
__argv = spawn_info->moreinfo->argv;
envp = spawn_info->moreinfo->envp;
envc = spawn_info->moreinfo->envc;
cygcwd.fixup_after_exec (spawn_info->moreinfo->cwd_win32,
spawn_info->moreinfo->cwd_posix,
spawn_info->moreinfo->cwd_hash);
fdtab.fixup_after_exec (spawn_info->parent, spawn_info->moreinfo->nfds,
spawn_info->moreinfo->fds);
signal_fixup_after_exec (child_proc_info->type == PROC_SPAWN);
@@ -719,6 +716,7 @@ dll_crt0_1 ()
cygheap->user.set_sid (NULL);
break;
}
// fdtab.vfork_child_fixup ();
}
ProtectHandle (hMainProc);
ProtectHandle (hMainThread);
@@ -735,7 +733,7 @@ dll_crt0_1 ()
/* Initialize events. */
events_init ();
cygcwd.init ();
cygheap->cwd.init ();
cygbench ("pre-forkee");
if (user_data->forkee)