Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 8 Feb 2005 15:22:19 -0600
From: Brian Ford <ford@vss.fsi.com>
Reply-To: cygwin@cygwin.com
To: Max Bowsher <maxb@ukf.net>
cc: cygwin@cygwin.com
Subject: Re: Problem with alarm() not functioning twice in one program.
In-Reply-To: <002201c50e1f$943c9320$e6ec6f83@robinson.cam.ac.uk>
Message-ID: <Pine.CYG.4.58.0502081458380.1356@fordpc.vss.fsi.com>
References: <030901c50e1d$51a22b30$e6ec6f83@robinson.cam.ac.uk> <Pine.CYG.4.58.0502081437580.1356@fordpc.vss.fsi.com> <002201c50e1f$943c9320$e6ec6f83@robinson.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-OriginalArrivalTime: 08 Feb 2005 21:20:00.0018 (UTC) FILETIME=[F235BF20:01C50E23]
X-IsSubscribed: yes

On Tue, 8 Feb 2005, Max Bowsher wrote:
> Brian Ford wrote:
> > On Tue, 8 Feb 2005, Max Bowsher wrote:
> >> The following program produces the output:
> >>
> >> Begin
> >> Done
> >> Begin
> >> ...and then hangs.
> >>
> >> Can anyone help me understand why?
> >>
> > http://www.cygwin.com/ml/cygwin/2004-10/msg00598.html
>
> Ah, OK.
>
> So are you saying "SIGALRM has been entered, but has not returned, so the
> signal handling code won't try to enter it again" ?

SIGALRM has been blocked upon entry to the signal handling routine.
Since you long jumped out of it, it's still blocked.

Did you follow that thread through to the end?  Maybe I should have quoted
this instead:

http://www.cygwin.com/ml/cygwin/2004-10/msg00606.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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/

