Re:Why isn't memset() async-signal-safe?
by Animats on Tuesday January 03, 2017 @08:55PM
(#13315054)
You're right; "sigreturn" wasn't in early UNIX systems but appeared in 4.3BSD. That job can also be done in user space, but there's a timing window against other signals if done that way.
I herby claim that sigreturn() restores the user space state in kernel context: https://lwn.net/Articles/676803/