File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / exit
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



exit()                   General Function                  exit()




Terminate a program gracefully

vvooiidd eexxiitt(_s_t_a_t_u_s) iinntt _s_t_a_t_u_s;

exit  is  the  normal method  to  terminate  a program  directly.
status information  is passed to the  parent process.  By conven-
tion, an  exit status of zero indicates  success, whereas an exit
status  greater  than  zero  indicates  failure.  If  the  parent
process issued a wait call, it is notified of the termination and
is passed  the least significant  eight bits of  status.  As exit
never returns, it is always successful.  Unlike the related func-
tion _exit,  exit does extra  cleanup, such as  flushing buffered
files and closing open files.

***** Example *****

For an example of this function, see the entry for ffooppeenn.

***** See Also *****

_exit(), close(), general functions, wait()



































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.