SIGINT, longjmp

Eric S. Raymond esr at
Wed Jan 27 00:56:44 UTC 2016

Hal Murray <hmurray at>:
> 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

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="">Eric S. Raymond</a>

More information about the devel mailing list