home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat2 / _exit.0 next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. EXIT(2)                    UNIX Programmer's Manual                    EXIT(2)
  3.  
  4. NNAAMMEE
  5.      __eexxiitt - terminate the calling process
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _v_o_i_d _v_o_l_a_t_i_l_e
  11.      __eexxiitt(_i_n_t _s_t_a_t_u_s)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The __eexxiitt() function terminates a process with the following conse­
  15.      quences:
  16.  
  17.      oo   All of the descriptors open in the calling process are closed.  This
  18.          may entail delays, for example, waiting for output to drain; a pro­
  19.          cess in this state may not be killed, as it is already dying.
  20.  
  21.      oo   If the parent process of the calling process has an outstanding wait
  22.          call or is interested in the SIGCHLD signal, it is notified of the
  23.          calling process's termination and the _s_t_a_t_u_s area is set as defined
  24.          by wait(2).
  25.  
  26.      oo   The parent process­ID of all of the calling process's existing child
  27.          processes are set to 1; the initialization process (see the DEFINI­
  28.          TIONS section of intro(2))  inherits each of these processes.  Any
  29.          stopped children are restarted with a hangup signal (SIGHUP).
  30.  
  31.      Most C programs call the library routine exit(3),  which flushes buffers,
  32.      closes streams, unlinks temporary files, etc., before calling __eexxiitt().
  33.  
  34. RREETTUURRNN VVAALLUUEE
  35.      __eexxiitt() can never return.
  36.  
  37. SSEEEE AALLSSOO
  38.      fork(2),  sigvec(2),  wait(2),  exit(3)
  39.  
  40. HHIISSTTOORRYY
  41.      An eexxiitt function call appeared in Version 6 AT&T UNIX.
  42.  
  43. 4th Berkeley Distribution        July 25, 1991                               1
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.