quit: don't call signal() if we're using sigaction()
At best, this is a no-op.
At worst, it might:
- Clobber a signal handler someone registered after us
- Overwrite the signal mask or flags
- Cause unregistration to fail (sigaction() isn't guaranteed to return the exact pointer passed to signal())
(cherry picked from commit 1d852d1c2872ec4275505e10e0e02392c0d60405)