delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/27/11:58:25

X-Spam-Check-By: sourceware.org
Message-Id: <5.0.0.25.2.20060127163859.00bc54c8@pop3.demon.co.uk>
X-Sender: moore+imperas2-adsl AT pop3 DOT demon DOT co DOT uk
Date: Fri, 27 Jan 2006 16:57:33 +0000
To: cygwin AT cygwin DOT com
From: Lee Moore <moore AT imperas DOT com>
Subject: Re: SIGALRM is ignored in generated code blocks (using mmap) - testcase included
In-Reply-To: <20060127060847.GA14661@trixie.casa.cgf.cx>
References: <5 DOT 0 DOT 0 DOT 25 DOT 2 DOT 20060125101316 DOT 00bc8a30 AT pop3 DOT demon DOT co DOT uk> <5 DOT 0 DOT 0 DOT 25 DOT 2 DOT 20060125101316 DOT 00bc8a30 AT pop3 DOT demon DOT co DOT uk>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--=====================_31552109==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi Chris

>This may be fixed in the latest snapshot, which I'm generating right now.

I checked out the source from CVS re-built and the fix you have made does 
fix my reported problem.
Unfortunately it has uncovered another issue, I wonder if you could give 
some advice.

I have made my own (local) changes to some of the cygwin sources in order 
to be able to provide the
'context' to 'sigaction' when an exception occurs (file diffs.txt attached).
This appears to work fine except for the case when SIGALRM occurs.

it appears that for SIGALRM neither the _cygtls::call_signal_handler nor 
the _cygtls::handle_exceptions
get involved - is this correct ?

when my signal handler for the alarm is called I cannot get the context, it 
has clearly come through a
different path. What I need to do is change the cygwin code so that the 
context is saved when the SIGALRM
occurs, in the same way it is for my other exceptions

All suggestions welcome
Thx
Lee
--=====================_31552109==_
Content-Type: text/plain; name="diffs.txt";
 x-mac-type="42494E41"; x-mac-creator="74747874"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="diffs.txt"

SW5kZXg6IGN5Z3dpbi9leGNlcHRpb25zLmNjCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KUkNTIGZpbGU6IC9jdnMvc3JjL3NyYy93aW5zdXAvY3lnd2luL2V4
Y2VwdGlvbnMuY2MsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMjc5CmRpZmYg
LXIxLjI3OSBleGNlcHRpb25zLmNjCjM0YTM1LDM3Cj4gLy8gSU1QRVJBUwo+
ICNpbmNsdWRlIDxzdGRpby5oPgo+IAo0NTdhNDYxLDQ2Mgo+IC8vIElNUEVS
QVMKPiAgIHNpLnNpX2NvbnRleHQgPSAodm9pZCAqKSBpbjsKMTMxNGMxMzE5
LDEzMjAKPCAJICBzaWdhY3QgKHRoaXNzaWcsICZ0aGlzc2ksIE5VTEwpOwot
LS0KPiAvLyBJTVBFUkFTCj4gCSAgc2lnYWN0ICh0aGlzc2lnLCAmdGhpc3Np
LCAodm9pZCAqKXRoaXNzaS5zaV9jb250ZXh0KTsKSW5kZXg6IGN5Z3dpbi9p
bmNsdWRlL2N5Z3dpbi9zaWduYWwuaAo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
ClJDUyBmaWxlOiAvY3ZzL3NyYy9zcmMvd2luc3VwL2N5Z3dpbi9pbmNsdWRl
L2N5Z3dpbi9zaWduYWwuaCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMQpk
aWZmIC1yMS4xMSBzaWduYWwuaAoxMGExMQo+IAo5OGM5OSwxMDUKPCAgICAg
dm9pZCAqc2lfYWRkcjsJCQkvKiBmYXVsdGluZyBhZGRyZXNzICovCi0tLQo+
ICAgICBzdHJ1Y3QKPiAgICAgewo+ICAgICAgIHZvaWQgKnNpX2FkZHI7CQkJ
LyogZmF1bHRpbmcgYWRkcmVzcyAqLwo+ICAgICAgIC8qIElNUEVSQVMgUmVn
aXN0ZXIgV2luZG93IGFjY2VzcyAqLwo+ICAgICAgIHZvaWQgKnNpX2NvbnRl
eHQ7CQkJLyogY29udGV4dCBwb2ludGVyICovCj4gICAgIH07Cj4gCjk5YTEw
Nwo+IAo=


--=====================_31552109==_
Content-Type: text/plain; charset=us-ascii

--
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/
--=====================_31552109==_--


- Raw text -


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