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.

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

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().

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.

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

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

◆ sigquit

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

Definition at line 34 of file scale_sigvars.F90.

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

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

◆ sigabrt

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

Definition at line 35 of file scale_sigvars.F90.

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

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

◆ sigfpe

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

Definition at line 36 of file scale_sigvars.F90.

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

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

◆ sigsegv

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

Definition at line 37 of file scale_sigvars.F90.

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

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

◆ sigterm

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

Definition at line 38 of file scale_sigvars.F90.

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

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

get_sigsegv
int get_sigsegv(int *ifail)
Definition: scale_sys_sigvars.c:56
get_sigabrt
int get_sigabrt(int *ifail)
Definition: scale_sys_sigvars.c:32
get_sigterm
int get_sigterm(int *ifail)
Definition: scale_sys_sigvars.c:68
get_sigint
int get_sigint(int *ifail)
Definition: scale_sys_sigvars.c:8
get_sigquit
int get_sigquit(int *ifail)
Definition: scale_sys_sigvars.c:20
get_sigfpe
int get_sigfpe(int *ifail)
Definition: scale_sys_sigvars.c:44