Signal handling in tight loops

Edmund Horner ejrh@paradise.net.nz
Tue Aug 7 04:06:00 GMT 2001


Hello again.

>From my DJGPP days I remember that the alarm signal could not be raised
in very tight loops, because signals were only checked when memory was
accessed.  Does this apply to cygwin, by any chance?

The reason I'm asking is that I have a module in my program which I
can't completely trust, and I'd like to terminate it after 2 minutes if
it hasn't returned by then.  I'm hoping to use alarm() for this.

Feasible?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list