diff options
author | Christopher Faylor <me@cgf.cx> | 2008-07-27 22:31:48 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-07-27 22:31:48 +0000 |
commit | 038af33480450d3092adb520ce0974cb23efde9c (patch) | |
tree | 78c3033e59bb364c54f1a5790e4404e64a0baca4 /winsup/cygwin/syscalls.cc | |
parent | b58e5f427a6905c1cefb2205c2359eef177dfb3a (diff) | |
download | cygnal-038af33480450d3092adb520ce0974cb23efde9c.tar.gz cygnal-038af33480450d3092adb520ce0974cb23efde9c.tar.bz2 cygnal-038af33480450d3092adb520ce0974cb23efde9c.zip |
* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
user_shared_initialize_1 from here.
(dll_crt0_1): Remove dynamically_loaded check. Just call malloc_init and
user_shared_initialize unconditionally.
* shared.cc (user_shared_create): Rename from user_shared_initialize.
(user_shared_initialize): Rename from user_shared_initialize_1. Move complete
user_shared content initialization code here from user_shared_create.
* syscalls.cc (seteuid32): Remove call to user_shared_initialize_1. That is
implied by the "true" argument to user_shared_create().
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index a5bca574d..bb74dff26 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2612,10 +2612,8 @@ seteuid32 (__uid32_t uid) myself->uid = uid; groups.ischanged = FALSE; if (!issamesid) - { - user_shared_initialize (true); - user_shared_initialize_1 (); - } + /* Recreate and fill out the user shared region for a new user. */ + user_shared_create (true); return 0; } |