This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with alarm() not functioning twice in one program.


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]