Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
terminate_program(3) Guardian Native C Library Calls Reference Manual
For active backup process pairs, if the primary process calls terminate_program() and specifies
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 specification.
7−12 Hewlett-Packard Company 527192-018