mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
siglongjmp: document why this function just calls longjmp
This commit is contained in:
parent
947b4574fa
commit
008f737ddf
1 changed files with 5 additions and 0 deletions
|
@ -5,5 +5,10 @@
|
|||
|
||||
_Noreturn void siglongjmp(sigjmp_buf buf, int ret)
|
||||
{
|
||||
/* If sigsetjmp was called with nonzero savemask flag, the address
|
||||
* longjmp will return to is inside of sigsetjmp. The signal mask
|
||||
* will then be restored in the returned-to context instead of here,
|
||||
* which matters if the context we are returning from may not have
|
||||
* sufficient stack space for signal delivery. */
|
||||
longjmp(buf, ret);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue