proc.5: Document /proc/PID/exe behaviour on unlinked pathnames

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Guillem Jover 2015-05-04 11:11:39 +02:00 committed by Michael Kerrisk
parent 06dd061c07
commit 7e3c767ad6
1 changed files with 2 additions and 0 deletions

View File

@ -403,6 +403,8 @@ You can even type
.I /proc/[pid]/exe .I /proc/[pid]/exe
to run another copy of the same executable that is being run by to run another copy of the same executable that is being run by
process [pid]. process [pid].
If the pathname has been unlinked, the symbolic link will contain the
string \(aq(deleted)\(aq appended to the original pathname.
.\" The following was still true as at kernel 2.6.13 .\" The following was still true as at kernel 2.6.13
In a multithreaded process, the contents of this symbolic link In a multithreaded process, the contents of this symbolic link
are not available if the main thread has already terminated are not available if the main thread has already terminated