Variables modified inside signal handlers should be volatile