-.\" $OpenBSD: getrusage.2,v 1.17 2015/02/28 21:51:57 bentley Exp $
+.\" $OpenBSD: getrusage.2,v 1.18 2024/07/17 13:29:05 claudio Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: February 28 2015 $
+.Dd $Mdocdate: July 17 2024 $
.Dt GETRUSAGE 2
.Os
.Sh NAME
.It Dv RUSAGE_SELF
Resources used by the current process.
.It Dv RUSAGE_CHILDREN
-Resources used by all the terminated children of the current process.
+Resources used by all the terminated children of the current process which
+were waited upon.
+If the child is never waited for, the resource information for the child
+process is discarded.
.It Dv RUSAGE_THREAD
Resources used by the current thread.
.El
.Ox 4.8 .
.Sh BUGS
There is no way to obtain information about a child process
-that has not yet terminated.
+that has not yet terminated or has not been waited for by the parent.