Re:Why isn't memset() async-signal-safe?
by Animats on Tuesday January 03, 2017 @07:21PM
(#13314571)
Returning from the signal handler occurs in user space. It's the C library's handling of signal save and return that matters here, not what the kernel does.
[ Parent
| on HN ]
So what does the sigreturn(2) syscall actually do?
I herby claim that sigreturn() restores the user space state in kernel context: https://lwn.net/Articles/676803/