Don't suggest people use getpid() to construct temporary filenames;

point them to mkstemp() instead.

Obtained from:	OpenBSD (based on)
This commit is contained in:
kris 2000-11-19 10:30:42 +00:00
parent fe7575db2f
commit cf66e99abe

View File

@ -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