X-Spam-Check-By: sourceware.org Date: Fri, 20 Apr 2007 13:17:38 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygwin1.dll POSIX signal emulation mechanism Message-ID: <20070420171738.GB28376@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070420150318 DOT GA96830 AT ice DOT 42 DOT org> <011e01c7835e$bc3653f0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <002001c78363$8571d7e0$905587a0$@com> <4628E518 DOT 1040806 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4628E518.1040806@byu.net> User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, Apr 20, 2007 at 10:06:48AM -0600, Eric Blake wrote: >According to David Xiao on 4/20/2007 9:49 AM: >>In win32 sub-system there is no signal or sig-stack facilities. I am >>quite curious how cygwin1.dll can do that? What's the mysterious part >>of it? >> >>As I knew, user-mode thread library such as pthread (POSIX thread) can >>be implement in use of signal. So signal facilies emulation is quite >>essential part to full implement a POSIX sub-system like cygwin does. >> >>I wish some can share with experience on this topic: How does cygwin >>provide signal facilities? > >It's open source - why don't you read it to find out for yourself? > >http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/how-signals-work.txt?cvsroot=src For the record, the signal handling in cygwin is one of the most complicated parts of the whole DLL. The how-signals-work.txt file does talk about some of it but it is, unfortunately, incomplete and out-of-date. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/