Explain how WIF* macros use the status value instead of the pointer to the status value as wait() does. We use the name 'status' both as the argument to wait() and WIF* macros, this is misleading.

This commit is contained in:
manu 2002-11-12 22:48:40 +00:00
parent a4d0ca7ffd
commit 3a24fac219

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wait.2,v 1.19 2002/10/01 18:10:46 wiz Exp $
.\" $NetBSD: wait.2,v 1.20 2002/11/12 22:48:40 manu Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -175,6 +175,11 @@ with a
value of -1.
.Pp
The following macros may be used to test the manner of exit of the process.
Note that these macros expect the
.Fa status
value itself, not a pointer to the
.Fa status
value.
One of the first three macros will evaluate to a non-zero (true) value:
.Bl -tag -width Ds
.It Fn WIFEXITED status