diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getpid.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2 index 1d94d82..1eb7741 100644 --- a/lib/libc/sys/getpid.2 +++ b/lib/libc/sys/getpid.2 @@ -53,8 +53,12 @@ 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, for +security reasons; see +.Xr mkstemp 3 +instead. .Pp .Fn Getppid returns the process ID of the parent |