delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/04/23:26:46

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: dll initialization
4 Nov 1998 23:26:46 -0800 :
Message-ID: <Pine.SUN.3.93.981105011656.6502B-100000.cygnus.cygwin32.developers@modi.xraylith.wisc.edu>
References: <01BE081F DOT 77F584E0 AT sos>
Mime-Version: 1.0
To: Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Hi Sergey,

Could you also apply this patch and see if it helps. This is necessary
when non-cygwin apps load cygwin DLLs and use certain runtime routines
(eg., getenv()).

Sat Oct 31 03:14:54 1998  Mumit Khan  <khan AT xraylith DOT wisc DOT edu>

	* dll_init.cc (dll_dllcrt0_1): Initialize process table entry.

--- ../../cdk-b20/b20-final/src/winsup/dll_init.cc	Thu Oct 29 17:30:08 1998
+++ dll_init.cc	Fri Oct 30 12:59:33 1998
@@ -445,6 +443,8 @@ dll_dllcrt0_1 (per_process *uptr)
      shared_init. */
   init_exceptions (&cygwin_except_entry);
 
+  pinfo_init (NULL);		/* Initialize our process table entry. */
+
   /* Nasty static stuff needed by newlib - initialize it.
      Note that impure_ptr has already been set up to point to this above
      NB. This *MUST* be done here, just after the forkee code as some

Regards,
Mumit

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019