added sigusr1 for darwin