On Mon, 6 Apr 2009, David Houlder wrote:
I don't think longjmp() is async signal safe.

You need to specify environment we are talking about. IEEE Std 1003.1 declare:

 ----------------
As it bypasses the usual function call and return mechanisms, longjmp() shall execute correctly in contexts of interrupts, signals, and any of their associated functions.
...
 ----------------

This is extension against ISO C which lack such declaration. It mean the ISO C longjmp may or may not work here.

So POSIX longjmp is signal safe, ISO C longjmp is not safe unless a specific implementation declare similar extension against ISO C.

                                                Dan

_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to