diff mbox series

proc.5: Update /proc/[pid]/task/[tid]/ example file

Message ID 8655db93-8700-686e-cf03-68738c3f66f4@I-love.SAKURA.ne.jp (mailing list archive)
State New
Headers show
Series proc.5: Update /proc/[pid]/task/[tid]/ example file | expand

Commit Message

Tetsuo Handa Feb. 4, 2022, 2:50 p.m. UTC
Since all of the /proc/[pid]/task/[tid]/cwd files are allowed to have
different values (so that threads can use relative pathnames), using
cwd file as an example of "have the same value" is not appropriate.

Since threads in a multithreaded process are created using CLONE_VM
flag, all of the /proc/[pid]/task/[tid]/maps files must have the same
value. Therefore, let's use maps file as an example.
---
Should I use [PATCH] and S-o-b for changes not in kernel tree?
I didn't use them in order not to be caught by testing bot process.

 man5/proc.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/man5/proc.5 b/man5/proc.5
index c6684620e..ea952b10f 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -2830,11 +2830,11 @@  file in the parent
 .I /proc/[pid]
 directory
 (e.g., in a multithreaded process, all of the
-.I task/[tid]/cwd
+.I task/[tid]/maps
 files will have the same value as the
-.I /proc/[pid]/cwd
+.I /proc/[pid]/maps
 file in the parent directory, since all of the threads in a process
-share a working directory).
+share the same memory space).
 For attributes that are distinct for each thread,
 the corresponding files under
 .I task/[tid]