SIGINT, longjmp
Eric S. Raymond
esr at thyrsus.com
Wed Jan 27 00:56:44 UTC 2016
Hal Murray <hmurray at megapathdsl.net>:
> I'm fishing for a list of routines that shouldn't be used with longjmp similar to the list that shouldn't be used with threads, or rather for the discussion of that list.
I don't know of any functions that are specifically unsafe around
setjmp()/longjmp().
The right way to think about setjmp()/longjmp() is as a save/restore of the
processor's register state, including the stack and frame pointers. It
doesn't have the concurrency issues that threads do because it doesn't
alter static memory or the heap.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
More information about the devel
mailing list