Check for signal handlers before thinking about blocking.