Annotation of coherent/a/usr/man/COHERENT/wait, revision 1.1

1.1     ! root        1: 
        !             2: 
        !             3: wait()                 COHERENT System Call                wait()
        !             4: 
        !             5: 
        !             6: 
        !             7: 
        !             8: Await completion of a child process
        !             9: 
        !            10: wwaaiitt(_s_t_a_t_p)
        !            11: iinntt *_s_t_a_t_p;
        !            12: 
        !            13: wait  suspends execution  of the invoking  process until  a child
        !            14: process (created  with fork) terminates.  It  returns the process
        !            15: identifier  of the  terminating child process.   If there  are no
        !            16: children or if an interrupt occurs, it returns -1.
        !            17: 
        !            18: If it  is successful, wait returns the  process identifier of the
        !            19: terminated child process.  In addition, wait fills in the integer
        !            20: pointed to  by statp with exit-status  information about the com-
        !            21: pleted process.  If  statp is NULL, wait discards the exit-status
        !            22: information.
        !            23: 
        !            24: wait fills  in the low  byte of the  status-information word with
        !            25: the termination status of the child process.  A child process may
        !            26: have terminated because of a  signal, because of an exit call, or
        !            27: have  stopped execution  during ptrace.   Termination  with exit,
        !            28: which is  normal completion, gives status  0.  Other terminations
        !            29: give signal  values as status (as defined in  the article on sig-
        !            30: nal).  The 0200 bit of the status code indicates that a core dump
        !            31: was produced.   A status  of 0177  indicates that the  process is
        !            32: waiting for further action from ptrace.
        !            33: 
        !            34: The high byte of the returned status is the low byte of the argu-
        !            35: ment to the exit system call.
        !            36: 
        !            37: If a  parent process does not remain in  existence long enough to
        !            38: wait on a child process,  the child process is adopted by process
        !            39: 1 (the initialization process).
        !            40: 
        !            41: ***** See Also *****
        !            42: 
        !            43: _exit(), COHERENT system calls, fork(), ptrace(), signal()
        !            44: 
        !            45: 
        !            46: 
        !            47: 
        !            48: 
        !            49: 
        !            50: 
        !            51: 
        !            52: 
        !            53: 
        !            54: 
        !            55: 
        !            56: 
        !            57: 
        !            58: 
        !            59: 
        !            60: 
        !            61: 
        !            62: 
        !            63: 
        !            64: COHERENT Lexicon                                           Page 1
        !            65: 
        !            66: 

unix.superglobalmegacorp.com

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