diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-17 03:52:08 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-17 03:52:08 +0000 |
commit | 431ba7dd33c6c29bca5b1172c43d522c1fa152cf (patch) | |
tree | 6c35ba68e0ddb119924f6d89549a14f22feed658 /winsup/cygwin/dcrt0.cc | |
parent | 7ade56ca6aed6c0a1a7227934ea31160958306a3 (diff) | |
download | newlib-431ba7dd33c6c29bca5b1172c43d522c1fa152cf.zip newlib-431ba7dd33c6c29bca5b1172c43d522c1fa152cf.tar.gz newlib-431ba7dd33c6c29bca5b1172c43d522c1fa152cf.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 4560088..ff75644 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) |