mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
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
dc3f2db745
commit
7853d5d839
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68893
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user