* dcrt0.cc (dll_crt0_1): Move uinfo_init call to before sigproc_init to avoid a

race.
(noload): Add an extra argument for debugging.
* uinfo.cc (uinfo_init): Eliminate test for multiple calls.
(getlogin): Assume that uinfo_init has already been called.
This commit is contained in:
Christopher Faylor
2000-05-22 00:54:22 +00:00
parent c9ae5a27b3
commit 7054be8b55
3 changed files with 18 additions and 16 deletions

View File

@@ -109,9 +109,6 @@ uinfo_init ()
{
struct passwd *p;
if (myself->username[0])
return;
myself->psid = (PSID) myself->sidbuf;
if ((p = getpwnam (internal_getlogin (myself))) != NULL)
{
@@ -140,7 +137,6 @@ getlogin (void)
static NO_COPY char this_username[MAX_USER_NAME];
#endif
uinfo_init ();
return strcpy (this_username, myself->username);
}