A bit of cleaning and changed rehash from SIGUSR1 to SIGHUP.