Fix SIGUSR1 handling on Solaris.