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:
parent
fe7575db2f
commit
cf66e99abe
@ -53,8 +53,12 @@
|
|||||||
returns
|
returns
|
||||||
the process ID of
|
the process ID of
|
||||||
the calling process.
|
the calling process.
|
||||||
The ID is guaranteed to be unique and is
|
Though the ID is guaranteed to be unique, it should
|
||||||
useful for constructing temporary file names.
|
.Em NOT
|
||||||
|
be used for constructing temporary file names, for
|
||||||
|
security reasons; see
|
||||||
|
.Xr mkstemp 3
|
||||||
|
instead.
|
||||||
.Pp
|
.Pp
|
||||||
.Fn Getppid
|
.Fn Getppid
|
||||||
returns the process ID of the parent
|
returns the process ID of the parent
|
||||||
|
Loading…
Reference in New Issue
Block a user