File:  [CSRG BSD Unix] / 43BSDTahoe / man / man3f / wait.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)wait.3f	6.1 (Berkeley) 5/15/85
.\"
.TH WAIT 3F "May 15, 1985"
.UC 5
.SH NAME
wait \- wait for a process to terminate
.SH SYNOPSIS
.B integer function wait (status)
.br
.B integer status
.SH DESCRIPTION
.I Wait
causes its caller to be suspended until a signal is received or one of
its child processes terminates.
If any child has terminated since the last
.I wait,
return is immediate; if there are no children, return is immediate
with an error code.
.PP
If the returned value is positive, it is the process ID of the child and
.I status
is its termination status (see
.IR wait (2)).
If the returned value is negative, it is the negation of a system error code.
.SH FILES
.ie \nM /usr/ucb/lib/libU77.a
.el /usr/lib/libU77.a
.SH "SEE ALSO"
wait(2), signal(3F), kill(3F), perror(3F)

unix.superglobalmegacorp.com

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