diff options
author | Christopher Faylor <me@cgf.cx> | 2001-07-18 17:05:34 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-07-18 17:05:34 +0000 |
commit | 16828fc5d4c7a335fae49be1d3f823b655825da8 (patch) | |
tree | 50a03015b90a4920d3b23933f3a8620fc55f80dd /winsup/cygwin/dcrt0.cc | |
parent | c9fbce2641e2e82438ca84b423216aff2c61cdd8 (diff) | |
download | cygnal-16828fc5d4c7a335fae49be1d3f823b655825da8.tar.gz cygnal-16828fc5d4c7a335fae49be1d3f823b655825da8.tar.bz2 cygnal-16828fc5d4c7a335fae49be1d3f823b655825da8.zip |
* cygheap.cc (_cmalloc): Use correct constants for size calculation.
* dcrt0.cc (dll_crt0_1): Move uid initialization earlier.
* fork.cc (fork_parent): Move cygheap_setup_in_child to just prior to
CreateProcess so that all contents of cygheap are copied.
* spawn.cc (spawn_guts): Ditto.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 8fdae5d8e..17bb90136 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -695,6 +695,7 @@ dll_crt0_1 () DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) h = NULL; set_myself (mypid, h); + myself->uid = spawn_info->moreinfo->uid; __argc = spawn_info->moreinfo->argc; __argv = spawn_info->moreinfo->argv; envp = spawn_info->moreinfo->envp; @@ -709,7 +710,6 @@ dll_crt0_1 () } if (child_proc_info->subproc_ready) ProtectHandle (child_proc_info->subproc_ready); - myself->uid = spawn_info->moreinfo->uid; if (myself->uid == USHRT_MAX) cygheap->user.set_sid (NULL); break; |