SCALE-RM
Data Types | Functions/Subroutines | Variables
scale_sigvars Module Reference

module sigvars More...

Functions/Subroutines

subroutine, public sigvars_get_all (master)
 Get signal values. More...
 

Variables

integer(c_int), public sigint = -1
 
integer(c_int), public sigquit = -1
 
integer(c_int), public sigabrt = -1
 
integer(c_int), public sigfpe = -1
 
integer(c_int), public sigsegv = -1
 
integer(c_int), public sigterm = -1
 

Detailed Description

module sigvars

Description
get SIGNAL values via C Language.
Author
Team SCALE
History
  • 2016-06-30 (R.Yoshida) [new]

Function/Subroutine Documentation

◆ sigvars_get_all()

subroutine, public scale_sigvars::sigvars_get_all ( logical, intent(in)  master)

Get signal values.

Definition at line 104 of file scale_sigvars.F90.

References get_sigabrt(), get_sigfpe(), get_sigint(), get_sigquit(), get_sigsegv(), get_sigterm(), sigabrt, sigfpe, sigint, sigquit, sigsegv, and sigterm.

Referenced by scale_prc::prc_errhandler_setup().

104  implicit none
105  logical, intent(in) :: master ! master flag
106  integer(c_int) :: ierr
107  !---------------------------------------------------------------------------
108 
109  if( master ) write(*,*) ''
110  if( master ) write(*,*) 'Get system signals'
111 
112  sigint = get_sigint(ierr)
113  if ( ierr == 0 ) then
114  if( master ) write(*,*) '*** signal: SIGINT = ', sigint
115  else
116  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGINT'
117  endif
118 
119  sigquit = get_sigquit(ierr)
120  if ( ierr == 0 ) then
121  if( master ) write(*,*) '*** signal: SIGQUIT = ', sigquit
122  else
123  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGQUIT'
124  endif
125 
126  sigabrt = get_sigabrt(ierr)
127  if ( ierr == 0 ) then
128  if( master ) write(*,*) '*** signal: SIGABRT = ', sigabrt
129  else
130  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGABRT'
131  endif
132 
133  sigfpe = get_sigfpe(ierr)
134  if ( ierr == 0 ) then
135  if( master ) write(*,*) '*** signal: SIGFPE = ', sigfpe
136  else
137  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGFPE'
138  endif
139 
140  sigsegv = get_sigsegv(ierr)
141  if ( ierr == 0 ) then
142  if( master ) write(*,*) '*** signal: SIGSEGV = ', sigsegv
143  else
144  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGSEGV'
145  endif
146 
147  sigterm = get_sigterm(ierr)
148  if ( ierr == 0 ) then
149  if( master ) write(*,*) '*** signal: SIGTERM = ', sigterm
150  else
151  if( master ) write(*,*) 'xxx [WARNING] Not Exist: SIGTERM'
152  endif
153 
154  return
int get_sigint(int *ifail)
int get_sigsegv(int *ifail)
int get_sigquit(int *ifail)
int get_sigterm(int *ifail)
int get_sigabrt(int *ifail)
int get_sigfpe(int *ifail)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sigint

integer(c_int), public scale_sigvars::sigint = -1

Definition at line 33 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

33  integer(c_int), public :: sigint = -1

◆ sigquit

integer(c_int), public scale_sigvars::sigquit = -1

Definition at line 34 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

34  integer(c_int), public :: sigquit = -1

◆ sigabrt

integer(c_int), public scale_sigvars::sigabrt = -1

Definition at line 35 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

35  integer(c_int), public :: sigabrt = -1

◆ sigfpe

integer(c_int), public scale_sigvars::sigfpe = -1

Definition at line 36 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

36  integer(c_int), public :: sigfpe = -1

◆ sigsegv

integer(c_int), public scale_sigvars::sigsegv = -1

Definition at line 37 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

37  integer(c_int), public :: sigsegv = -1

◆ sigterm

integer(c_int), public scale_sigvars::sigterm = -1

Definition at line 38 of file scale_sigvars.F90.

Referenced by scale_prc::prc_errhandler_setup(), and sigvars_get_all().

38  integer(c_int), public :: sigterm = -1