From 16828fc5d4c7a335fae49be1d3f823b655825da8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 18 Jul 2001 17:05:34 +0000 Subject: * 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. --- winsup/cygwin/fork.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fork.cc') diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index 5c7bad339..640623e3b 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -442,7 +442,6 @@ fork_parent (HANDLE& hParent, dll *&first_dll, RevertToSelf (); ch.parent = hParent; - cygheap_setup_for_child (&ch); #ifdef DEBUGGING if (npid_max) { @@ -464,6 +463,7 @@ out: char sa_buf[1024]; syscall_printf ("CreateProcess (%s, %s, 0, 0, 1, %x, 0, 0, %p, %p)", myself->progname, myself->progname, c_flags, &si, &pi); + cygheap_setup_for_child (&ch); rc = CreateProcess (myself->progname, /* image to run */ myself->progname, /* what we send in arg0 */ allow_ntsec ? sec_user (sa_buf) : &sec_none_nih, -- cgit v1.2.3