From 431ba7dd33c6c29bca5b1172c43d522c1fa152cf Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 17 Apr 2001 03:52:08 +0000 Subject: * 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. --- winsup/cygwin/dcrt0.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 45600884b..ff75644bd 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -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) -- cgit v1.2.3