X-Spam-Check-By: sourceware.org Date: Mon, 23 Jan 2006 13:45:52 +0100 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: SIGALRM is ignored in generated code blocks (using mmap) - testcase included Message-ID: <20060123124552.GO5636@implementation.labri.fr> Mail-Followup-To: cygwin AT cygwin DOT com References: <5 DOT 0 DOT 0 DOT 25 DOT 2 DOT 20060123114614 DOT 00c48ca8 AT pop3 DOT demon DOT co DOT uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5.0.0.25.2.20060123114614.00c48ca8@pop3.demon.co.uk> User-Agent: Mutt/1.5.9i-nntp X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Hi, Lee Moore, le Mon 23 Jan 2006 12:05:17 +0000, a écrit : > I have an application which is creating generated code blocks in memory > provided by mmap, once the application is running in the generated code > blocks, it cannot be interrupted by a SIGALRM. Mmm, IIRC signals can't be delivered unless you call cygwin functions. Another problem can this this too: int main(void) { signal(SIGALRM,handler); alarm(1); Sleep(); } Here I'm using windows' Sleep() function, hence cygwin can't get control. On the contrary, using cygwin's sleep() function makes things work as expected. Regards, Samuel -- 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/