Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Sun, 23 May 1999 00:01:56 -0400 From: Chris Faylor To: Mumit Khan Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: fork + dlls Message-ID: <19990523000156.B619@cygnus.com> References: <199905221826 DOT NAA00916 AT mercury DOT xraylith DOT wisc DOT edu> <199905230017 DOT TAA01327 AT mercury DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199905230017.TAA01327@mercury.xraylith.wisc.edu>; from Mumit Khan on Sat, May 22, 1999 at 07:17:30PM -0500 On Sat, May 22, 1999 at 07:17:30PM -0500, Mumit Khan wrote: >I had written earlier (and on an empty stomach): >> >> This has been a bug since day one, and one that needs a bit of redesign >> of the code in winsup/dll_init.cc to do it right. The current code there >> is quite complex, and overly so in some cases, and someone who knows more >> about it needs to take a look. > >I was confused. My local hack was completely unnecessary since the code >is actually all there, albeit a bit too complex for me to comprehend at >first [and here's where I plug in the empty stomach bit]. I wouldn't blame your stomoach, Mumit. The code is pretty opaque. It's begging for a complete rewrite. I've wanted to rewrite the stuff in fork.cc several times. Every time I look at it I realize that, to do it right, I'd have to modify the dl* stuff, too. >The following should fix Eric's testcase that uses dlsym across fork. Thanks. FYI, I wrote a 'strmatchcase' function a while ago which should be slightly faster than strcasecmp. I'll modify your patch to use this. -chris -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com