Changeset 72 for trunk/signal-checkpoint


Ignore:
Timestamp:
May 29, 2012, 11:20:54 AM (12 years ago)
Author:
g7moreau
Message:
  • Replace integer flag by a logical variable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/signal-checkpoint/signal_checkpoint.F90

    r71 r72  
    2222integer, parameter :: SIGTERM = 15  ! Signal TERM
    2323
    24 ! False public, only for trap procedure
    25 integer :: INTERNAL_RECEIVED_COUNT_ = 0  ! Global Counter
    26 integer :: INTERNAL_ERROR_ON_EXIT_  = 0
     24! Internal counter
     25integer :: INTERNAL_RECEIVED_COUNT_ = 0       ! Global Signal Counter
     26logical :: INTERNAL_ERROR_ON_EXIT_  = .false. ! Global State
    2727
    2828public :: SIGHUP
     
    8989   logical :: EXIT
    9090   
    91    EXIT = ( INTERNAL_ERROR_ON_EXIT_ /= 0 )
     91   EXIT = INTERNAL_ERROR_ON_EXIT_
    9292end function
    9393
     
    106106   !integer, intent(in) :: SIG_NUM
    107107
    108    INTERNAL_ERROR_ON_EXIT_ = 1
     108   INTERNAL_ERROR_ON_EXIT_ = .true.
    109109   call trap_callback_count_
    110110end subroutine
Note: See TracChangeset for help on using the changeset viewer.