Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-10-19 04:45:39 +0400
committerDJ Delorie <dj@redhat.com>2000-10-19 04:45:39 +0400
commit6e8f36bc43a54e6d6d21528acfe6f92d07781a9d (patch)
tree0fd61de3446c5bef3f82bed4c4663c9ec9f0e219 /winsup/cygwin/dcrt0.cc
parentb8cb783f28eedbc327ca0d9bc4ebde6227d9d9e1 (diff)
* dcrt0.cc (dll_crt0_1): init cygcwd before forkee branch
* environ.cc (conv_start_chars): Cache a table of "first characters" for environment variables needing conversion. (getwinenv): Use it. (environ_init): Create it, also check first chars for TERM and CYGWIN. * path.cc: Use lookup table for case insensitive comparisons.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index bba242533..fa13cf1ce 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -739,6 +739,8 @@ dll_crt0_1 ()
instead of each time a file is opened. */
set_process_privileges ();
+ cygcwd.init ();
+
cygbench ("pre-forkee");
if (user_data->forkee)
@@ -759,8 +761,6 @@ dll_crt0_1 ()
longjmp (fork_info->jmp, fork_info->cygpid);
}
- cygcwd.init ();
-
/* Initialize our process table entry. */
pinfo_init (envp, envc);