Make sigreturn processing slightly less special-case-y.

#293