bsd man page for wait

Query: wait

OS: bsd

Section: 3f

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

WAIT(3F)																  WAIT(3F)

NAME
wait - wait for a process to terminate
SYNOPSIS
integer function wait (status) integer status
DESCRIPTION
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 wait, return is immediate; if there are no children, return is immediate with an error code. If the returned value is positive, it is the process ID of the child and status is its termination status (see wait(2)). If the returned value is negative, it is the negation of a system error code.
FILES
/usr/lib/libU77.a
SEE ALSO
wait(2), signal(3F), kill(3F), perror(3F) 4.2 Berkeley Distribution May 15, 1985 WAIT(3F)
Related Man Pages
waitpid(2) - bsd
wait(3c) - opensolaris
wait(2) - minix
wait(2) - plan9
waitpid(2) - opendarwin
Similar Topics in the Unix Linux Community
Waiting for an arbitrary background process (limiting number of jobs running)
Waiting till the directory becomes empty
[SOLVED] Problem in wait statement
Wait for one processes to complete in a shell script
Wait/if Generated kind of operation