reinstall signal handler each time it's executed on Solaris (#3976)