diff options
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/getpid.2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2 index 4c1c08cdb26..53eab747a6d 100644 --- a/lib/libc/sys/getpid.2 +++ b/lib/libc/sys/getpid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpid.2,v 1.7 2000/10/18 05:12:09 aaron Exp $ +.\" $OpenBSD: getpid.2,v 1.8 2000/10/19 17:34:34 aaron Exp $ .\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -51,8 +51,11 @@ .Sh DESCRIPTION .Fn getpid returns the process ID of the calling process. -The ID is guaranteed to be unique and is useful for constructing -temporary file names. +Though the ID is guaranteed to be unique, it should +.Em NOT +be used for constructing temporary file names; see +.Xr mkstemp 3 +instead. .Pp .Fn getppid returns the process ID of the parent of the calling process. |