www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/11/23/01:28:24

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-Id: <199911230628.AAA03335@hp2.xraylith.wisc.edu>
To: Chris Faylor <cgf AT cygnus DOT com>
cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Contemplating signal changes, but...
In-reply-to: Your message of "Mon, 22 Nov 1999 22:19:21 EST."
<19991122221921 DOT A8075 AT cygnus DOT com>
Date: Tue, 23 Nov 1999 00:28:08 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

Chris Faylor <cgf AT cygnus DOT com> writes:
> 
> I can probably put a front-end on CreateThread to work around the
> problem with people creating threads but I was thinking of just
> turning off signals entirely when the Cygwin DLL is dynamically
> loaded.  I could also just revert to the old method of delivering
> signals but that would be a little more work.
> 
> I wanted to see how people (i.e., Mumit) felt about the idea of
> signals being inoperative in a dynamically loaded cygwin.  I don't
> think that this is a big deal but I don't know for sure.
> 

I finally sat down and redid the -mno-cygwin support to avoid the
code duplication, and I now know that getting signals to work
*reliably* for non-cygwin apps (loaded dynamically without crt0 
support) is going to be awkward. The trouble is that singal handling 
almost requires (unless you don't mind non-deterministic bugs ;-) 
that the startup waits on the signal thread; now, this is not possible
due to serialization of LoadLibrary, and so I'm in favor simply
saying that signal handling is not going to work for non-cygwin
apps loading Cygwin DLL.

If you think about the mno-cygwin "customers" of Cygwin, it's mostly 
extension DLLs for proprietary systems -- Java JNI, Matlab mex,
Excel DLLs, Netscape/IE plugins -- and we just have to face the fact
that Cygwin just can't be the end all and be all.

I believe that getting signal handling to work better in Cygwin should 
take far higher precedence than non-cygwin ones. There, I said it ;-).

Regards,
Mumit

- Raw text -


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