|
|
|
|
|
by kazinator
883 days ago
|
|
swapcontext was in POSIX.1-2001; it was removed in 2008. In relation to all this, in POSIX, there are often good reasons to use sigsetjmp and siglongjmp rather than setjmp and longjmp, because these also save and restore the signal mask. If you jump out of a context that locally disabled certain signals, you likely want them restored, like you would if that code returned normally. (It doesn't necessarily have to be a jump out of a signal handler!) |
|