CRE Programmer's Guide
CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
2-55
Native CRE Signals and Exceptions
Native CRE Signals and Exceptions
For Guardian processes, the native CRE library provides a default signal handler for all
signals whose default action is not signal ignore. The signal handler takes all
appropriate actions, then terminates the process; it does not return control to its caller.
The default signal handler is set once at process initialization time. Any subsequent
calls to signal manipulation functions by the user can associate a different signal
handler with a given signal.
The native CRE library does not provide a default signal handler for OSS processes.
In standard math functions, the native CRE library provides only non-trapping variants
of those functions that can cause arithmetic faults. Arithmetic faults are dynamically
detected, and the native CRE takes all other appropriate actions, such as setting
errno and returning an appropriate value.
For details on signals and signal handlers, refer to the
Guardian Programmer’s Guide
or
OSS Programmer’s Guide.
Figure 2-16. Writing a CRE Error Message in the OSS Environment
21 7VST .VSD
Start
Write to file
associated with
File Descriptor 2
Write
Successful?
Write to
home terminal
(might fail)
Call PROCESS_STOP_
yes
no