def METHOD_NAME(signum, frame):
  # Pre python3.5 the interruption of a system call would automatically raise
  # an InterruptedError exception, but since PEP 475 was implemented for fcntl
  # interruptions are automatically retried; this implementation depends on
  # interrupting the attempt to acquire a lock on the status file, so we can
  # ensure this in all python3 versions by raising it explicitly in the signal
  # handler.
  raise InterruptedError()