      subroutine sig_handler(sig)
      integer sig
      common /restart/ terminate
      logical terminate
      terminate = .true.
      end
