Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)

Guardian Native C Library Calls (a - e) exit(3)
NAME
exit - Terminates a process
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdlib.h>
void exit(
int status);
PARAMETERS
status Indicates the status of the process.
DESCRIPTION
The exit() function terminates the calling process after it calls any functions registered previ-
ously for the process by the atexit() function, in the reverse order to that in which they were
registered. In addition, the exit() function ushes all open output streams, closes all open
streams, and removes all les created by the tmple() function. Finally, it completes process
termination and does not return.
For Guardian active backup process pairs, if the primary process calls exit() and species normal
termination (the status is zero), both the primary and backup processes terminate.
RETURN VALUES
The exit() function does not return.
RELATED INFORMATION
Functions: atexit(3), _exit(2), sigaction(2), times(3), wait(2).
527192-007 Hewlett-Packard Company 179