NAME

_exit - terminate the current process

SYNOPSIS

#include <unistd.h>

void _exit(intstatus);

DESCRIPTION

_exit terminates the calling process immediately. Any open file descriptors belonging to the process are closed; any children of the process are inherited by process 1, init, and the process's parent is sent a SIGCHLD signal.

status is returned to the parent process as the process's exit status, and can be collected using one of the wait family of calls.

RETURN VALUE

_exit never returns.

CONFORMING TO

SVr4, SVID, POSIX, X/OPEN, BSD 4.3

NOTES

_exit does not call any functions registered with the ANSI C atexit function and does not flush standard I/O buffers. To do these things, use exit(3).

Please note that any user can change the contents of pages on this site,
and therefore the Waikato Linux Users Group can offer no assurances that
the information is correct, and the information on this site is not
necessarily the opinion of the Waikato Linux Users Group, or any of its
members. If you have any complaints about the contents of this page,
please do not hesitate to contact the Waikato Linux Users Group, or, click
the Edit button!

Unless otherwise noted, all pages on this site are licensed under the
WlugWikiLicense.