.\" 2004-11-11, mtk
.\" Added waitid(2); added WCONTINUED and WIFCONTINUED()
.\" Added text on SA_NOCLDSTOP
-.\" Updated discussion of SA_NOCLDWAIT to reflect 2.6 behaviour
+.\" Updated discussion of SA_NOCLDWAIT to reflect 2.6 behavior
.\" Much other text rewritten
.\" 2005-05-10, mtk, __W* flags can't be used with waitid()
.\"
argument has changed state.
By default,
.BR waitpid ()
-waits only for terminated children, but this behaviour is modifiable
+waits only for terminated children, but this behavior is modifiable
via the
.I options
argument, as described below.
.I errno
set to
.BR ECHILD .
-(The original POSIX standard left the behaviour of setting
+(The original POSIX standard left the behavior of setting
.B SIGCHLD
to
.B SIG_IGN
using the integer supplied on the command line as the exit status.
The parent process executes a loop that monitors the child using
.BR waitpid (2),
-and uses the W*() macros described above to analyse the wait status value.
+and uses the W*() macros described above to analyze the wait status value.
The following shell session demonstrates the use of the program:
.nf