mirror of https://github.com/mkerrisk/man-pages
prctl.2: Add health warning
In reality, almost every prctl interferes with assumptions that the compiler and C library / runtime rely on. prctl() can therefore make userspace explode in a variety ways that are likely to be hard to debug. This is not obvious to the uninitiated, so add a warning. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
5aaf1385fb
commit
ec5cb536b1
|
@ -66,6 +66,11 @@ prctl \- operations on a process or thread
|
|||
manipulates various aspects of the behavior
|
||||
of the calling thread or process.
|
||||
.PP
|
||||
Note that careless use of
|
||||
.BR prctl ()
|
||||
can confuse the userspace run-time environment,
|
||||
so these operations should be used with care (if at all).
|
||||
.PP
|
||||
.BR prctl ()
|
||||
is called with a first argument describing what to do
|
||||
(with values defined in \fI<linux/prctl.h>\fP), and further
|
||||
|
|
Loading…
Reference in New Issue