Added access check in sigusr1 handler