BSD 4_4 development
[unix-history] / usr / share / man / cat1 / wait.0
CommitLineData
8204f1ab
C
1WAIT(1) BSD Reference Manual WAIT(1)
2
3N\bNA\bAM\bME\bE
4 w\bwa\bai\bit\bt - await process completion
5
6S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
7 w\bwa\bai\bit\bt [_\bp_\bi_\bd]
8
9D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
10 If invoked with no arguments, the w\bwa\bai\bit\bt utility waits until all existing
11 child processes in the background have terminated.
12
13 Available operands:
14
15 _\bp_\bi_\bd If a _\bp_\bi_\bd operand is specified, and it is the process ID of a
16 background child process that still exists, the w\bwa\bai\bit\bt utility
17 waits until that process has completed and consumes its status
18 information, without consuming the status information of any oth-
19 er process.
20
21 If a pid operand is specified that is not the process ID of a
22 child background process that still exists, w\bwa\bai\bit\bt exits without
23 waiting for any processes to complete.
24
25 The w\bwa\bai\bit\bt utility exits with one of the following values:
26
27 0 The w\bwa\bai\bit\bt utility was invoked with no operands and all of the ex-
28 isting background child processes have terminated, or the process
29 specified by the pid operand exited normally with 0 as its exit
30 status.
31
32 >0 The specified process did not exist and its exit status informa-
33 tion was not available, or the specified process existed or its
34 exit status information was available, and it terminated with a
35 non-zero exit status.
36
37 If the specified process terminated abnormally due to the receipt of a
38 signal, the exit status information of w\bwa\bai\bit\bt contains that termination
39 status as well.
40
41S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
42 The w\bwa\bai\bit\bt command is expected to be IEEE Std1003.2 (``POSIX'') compatible.
43
444.4BSD June 5, 1993 1