This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin1.dll POSIX signal emulation mechanism
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/