Digital UNIX Diffs - exit(5) Digital UNIX Diffs - exit(5)NAME
exit, _exit - Terminates a process
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdlib.h>
void exit (
int status );
void _exit (
int status );
PARAMETERSDIFFERENCESvms-process(5): OpenVMS Process Model Differences
exit(2) and _exit(2) terminate the calling process on both operating
systems. The differences between the 2 platforms reflect the differ‐
ences in the base operating system. For example, exit(2) and _exit(2)
are identical in function on OpenVMS. Flushing buffers is done as part
of process cleanup. On UNIX, exit(2) flushes buffers and then calls
_exit(2) to terminate the process.
Another major difference is the relationship between parent and child
processes. On OpenVMS, when a parent process terminates, its child
processes are terminated also. On UNIX, child processes are not termi‐
nated when their parent exits. They are instead reparented to the
init(8) process.
RELATED INFORMATION
Functions: atexit(2), wait(2)CATEGORY INDEXvms-process(5)
delim off
Digital UNIX Diffs - exit(5)