|
|
1.1 ! root 1: .th WAIT II 8/5/73 ! 2: .sh NAME ! 3: wait \*- wait for process to die ! 4: .sh SYNOPSIS ! 5: (wait = 7.) ! 6: .br ! 7: .ft B ! 8: sys wait ! 9: .s3 ! 10: wait(status) ! 11: .br ! 12: int *status; ! 13: .ft R ! 14: .sh DESCRIPTION ! 15: .it Wait ! 16: causes its caller to delay until one of its child ! 17: processes terminates. ! 18: If any child has died since the last ! 19: .it wait, ! 20: return is immediate; ! 21: if there are no children, return is immediate with ! 22: the error bit set ! 23: (resp. with a value of \*-1 returned). ! 24: In the case of several children several ! 25: .it wait ! 26: calls are needed ! 27: to learn of all the deaths. ! 28: .s3 ! 29: If no error is indicated on return, ! 30: the r1 high byte (resp. the high byte stored into ! 31: .it status ! 32: ) contains the low byte of the ! 33: child process r0 (resp. the argument of ! 34: .it exit ! 35: ) when it terminated. ! 36: The r1 (resp. ! 37: .it status ! 38: ) low byte contains the termination status ! 39: of the process. ! 40: See signal(II) for ! 41: a list of termination statuses (signals); ! 42: 0 status indicates normal termination. ! 43: If the 040 bit of the termination status ! 44: is set, ! 45: a core image of the process was produced ! 46: by the system. ! 47: .sh "SEE ALSO" ! 48: exit(II), fork(II), signal(II) ! 49: .sh DIAGNOSTICS ! 50: The error bit ! 51: (c-bit) on if no children not previously waited for. ! 52: From C, a returned value of \*-1 indicates an error.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.