Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

terminate_program(3) OSS Library Calls Reference Manual
For active backup process pairs, if the primary process calls terminate_program() and species
normal termination (the option value is zero), both the primary and backup processes terminate.
To ensure that all cleanup operations that the C library needs to perform are done, do not call the
Guardian system procedures STOP, ABEND, or PROCESS_STOP_ directly to terminate your
program. However, STOP should only be replaced with terminate_program( ) if a process
wants to stop itself. To stop another process, use the STOP or PROCESS_STOP_ procedure.
Descriptions of all of the parameters for the terminate_program( )
function, except for dummy,
are identical to the corresponding parameters for the PROCESS_STOP_ system procedure. See
the Guardian Procedure Calls Reference Manual for further information.
RELATED INFORMATION
Functions: exit(3).
STANDARDS CONFORMANCE
The terminate_program() function is an HP extension to the XPG4 Version 2 specication.
726 Hewlett-Packard Company 527187-004