xiaoxiang781216 commented on pull request #1009: URL: https://github.com/apache/incubator-nuttx/pull/1009#issuecomment-626324491
> I used ucontext API because it can restore the signal mask after a call to `swapcontext`. The setjmp/longjmp mechanism doesn't seem to work with signals. Do you think it's better to close this PR and re-open a different one with the suggested changes ? After reading the related document carefully, I think at least there are at least two other possible, simple and portable method than ucontext: 1.call sigaction with SA_NODEFER http://man7.org/linux/man-pages/man2/sigaction.2.html 2.call sigsetjmp and siglongjmp https://linux.die.net/man/3/sigsetjmp ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org